open-consul/ui-v2/app/components/tabular-details.js
John Cowen 52a62f2b8d UI: New ACLs (#4789)
UI to accompany the new ACLs APIs
2018-10-19 08:45:05 -07:00

18 lines
498 B
JavaScript

import Component from '@ember/component';
import SlotsMixin from 'ember-block-slots';
import closest from 'consul-ui/utils/dom/closest';
import clickFirstAnchorFactory from 'consul-ui/utils/dom/click-first-anchor';
const clickFirstAnchor = clickFirstAnchorFactory(closest);
export default Component.extend(SlotsMixin, {
onchange: function() {},
actions: {
click: function(e) {
clickFirstAnchor(e);
},
change: function(item, e) {
this.onchange(e, item);
},
},
});