2018-09-25 16:28:26 +00:00
|
|
|
import Component from '@ember/component';
|
|
|
|
import { computed } from '@ember/object';
|
2018-04-03 14:16:57 +00:00
|
|
|
|
2019-04-03 21:06:20 +00:00
|
|
|
/**
|
|
|
|
* @module HomeLink
|
|
|
|
* `HomeLink` is a span that contains either the text `home` or the `LogoEdition` component.
|
|
|
|
*
|
|
|
|
* @example
|
|
|
|
* ```js
|
|
|
|
* <HomeLink @class="navbar-item splash-page-logo">
|
|
|
|
* <LogoEdition />
|
|
|
|
* </HomeLink>
|
|
|
|
* ```
|
|
|
|
*
|
|
|
|
* @see {@link https://github.com/hashicorp/vault/search?l=Handlebars&q=HomeLink|Uses of HomeLink}
|
|
|
|
* @see {@link https://github.com/hashicorp/vault/blob/master/ui/app/components/home-link.js|HomeLink Source Code}
|
|
|
|
*/
|
|
|
|
|
2018-08-16 17:48:24 +00:00
|
|
|
export default Component.extend({
|
2018-04-03 14:16:57 +00:00
|
|
|
tagName: '',
|
|
|
|
|
|
|
|
text: computed(function() {
|
|
|
|
return 'home';
|
|
|
|
}),
|
|
|
|
|
|
|
|
computedClasses: computed('classNames', function() {
|
|
|
|
return this.get('classNames').join(' ');
|
|
|
|
}),
|
|
|
|
});
|