1996336481
* Update repository links to point to main Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com> * Fix broken link in relatedtools.mdx Co-authored-by: Steven Clark <steven.clark@hashicorp.com> Co-authored-by: Steven Clark <steven.clark@hashicorp.com>
30 lines
751 B
JavaScript
30 lines
751 B
JavaScript
import Component from '@ember/component';
|
|
import { computed } from '@ember/object';
|
|
|
|
/**
|
|
* @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/main/ui/app/components/home-link.js|HomeLink Source Code}
|
|
*/
|
|
|
|
export default Component.extend({
|
|
tagName: '',
|
|
|
|
text: computed(function () {
|
|
return 'home';
|
|
}),
|
|
|
|
computedClasses: computed('classNames', function () {
|
|
return this.classNames.join(' ');
|
|
}),
|
|
});
|