open-vault/ui/lib/core/addon/components/toolbar-link.js

18 lines
408 B
JavaScript
Raw Normal View History

import Component from '@ember/component';
2019-04-29 15:19:03 +00:00
import { computed } from '@ember/object';
import layout from '../templates/components/toolbar-link';
2019-04-29 15:19:03 +00:00
export default Component.extend({
layout,
tagName: '',
supportsDataTestProperties: true,
type: null,
2019-04-29 15:19:03 +00:00
glyph: computed('type', function() {
if (this.type == 'add') {
return 'plus-plain';
} else {
return 'chevron-right';
}
}),
});