open-vault/ui/app/components/home-link.js

26 lines
506 B
JavaScript
Raw Normal View History

2018-04-03 14:16:57 +00:00
import Ember from 'ember';
import hbs from 'htmlbars-inline-precompile';
const { computed } = Ember;
export default Ember.Component.extend({
layout: hbs`<a href="{{href-to 'vault.cluster' 'vault'}}" class={{class}}>
{{#if hasBlock}}
{{yield}}
{{else}}
{{text}}
{{/if}}
</a>
`,
tagName: '',
text: computed(function() {
return 'home';
}),
computedClasses: computed('classNames', function() {
return this.get('classNames').join(' ');
}),
});