d509588cd2
Ember update - update ember-cli, ember-data, and ember to 3.4 series
19 lines
504 B
JavaScript
19 lines
504 B
JavaScript
import { computed } from '@ember/object';
|
|
import Component from '@ember/component';
|
|
|
|
export default Component.extend({
|
|
tagName: 'span',
|
|
classNames: 'tag is-outlined edition-badge',
|
|
attributeBindings: ['edition:aria-label'],
|
|
icon: computed('edition', function() {
|
|
const edition = this.get('edition');
|
|
const entEditions = ['Enterprise', 'Premium', 'Pro'];
|
|
|
|
if (entEditions.includes(edition)) {
|
|
return 'edition-enterprise';
|
|
} else {
|
|
return 'edition-oss';
|
|
}
|
|
}),
|
|
});
|