open-vault/ui/app/components/edition-badge.js
Matthew Irish d509588cd2
Ember update (#5386)
Ember update - update ember-cli, ember-data, and ember to 3.4 series
2018-09-25 11:28:26 -05:00

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';
}
}),
});