mirror of https://github.com/status-im/consul.git
21 lines
494 B
JavaScript
21 lines
494 B
JavaScript
import Component from '@ember/component';
|
|
import { inject as service } from '@ember/service';
|
|
import Slotted from 'block-slots';
|
|
|
|
export default Component.extend(Slotted, {
|
|
dom: service('dom'),
|
|
onchange: function () {},
|
|
init: function () {
|
|
this._super(...arguments);
|
|
this.guid = this.dom.guid(this);
|
|
},
|
|
actions: {
|
|
click: function (e) {
|
|
this.dom.clickFirstAnchor(e);
|
|
},
|
|
change: function (item, items, e) {
|
|
this.onchange(e, item, items);
|
|
},
|
|
},
|
|
});
|