open-vault/ui/app/components/edition-badge.js

16 lines
371 B
JavaScript
Raw Normal View History

2018-04-03 14:16:57 +00:00
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'span',
classNames: 'badge edition-badge',
abbreviation: Ember.computed('edition', function() {
const edition = this.get('edition');
if (edition == 'Enterprise') {
return 'Ent';
} else {
return edition;
}
}),
attributeBindings: ['edition:aria-label'],
});