open-vault/ui/app/components/edition-badge.js
2018-08-15 13:41:43 -06:00

18 lines
459 B
JavaScript

import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'span',
classNames: 'tag is-outlined edition-badge',
attributeBindings: ['edition:aria-label'],
icon: Ember.computed('edition', function() {
const edition = this.get('edition');
const entEditions = ['Enterprise', 'Premium', 'Pro'];
if (entEditions.contains(edition)) {
return 'edition-enterprise';
} else {
return 'edition-oss';
}
}),
});