2019-05-13 19:05:25 +00:00
|
|
|
import Component from '@ember/component';
|
2019-04-29 15:19:03 +00:00
|
|
|
import { computed } from '@ember/object';
|
2019-05-13 19:05:25 +00:00
|
|
|
import layout from '../templates/components/toolbar-link';
|
2019-04-29 15:19:03 +00:00
|
|
|
|
2019-05-13 19:05:25 +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';
|
|
|
|
}
|
|
|
|
}),
|
|
|
|
});
|