open-vault/ui/lib/core/addon/components/toolbar-link.js
Matthew Irish 0ccc8467ec
UI ember engines (#6718)
Adds replication engine and core in-repo addon
2019-05-13 14:05:25 -05:00

18 lines
408 B
JavaScript

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