52a62f2b8d
UI to accompany the new ACLs APIs
19 lines
497 B
JavaScript
19 lines
497 B
JavaScript
import Component from 'consul-ui/components/dom-buffer-flush';
|
|
import { inject as service } from '@ember/service';
|
|
import { get } from '@ember/object';
|
|
|
|
export default Component.extend({
|
|
dom: service('dom'),
|
|
actions: {
|
|
change: function(e) {
|
|
[...get(this, 'dom').elements('[name="modal"]')]
|
|
.filter(function(item) {
|
|
return item.getAttribute('id') !== 'modal_close';
|
|
})
|
|
.forEach(function(item) {
|
|
item.onchange();
|
|
});
|
|
},
|
|
},
|
|
});
|