mirror of https://github.com/status-im/consul.git
21 lines
620 B
JavaScript
21 lines
620 B
JavaScript
import DomBufferFlushComponent from 'consul-ui/components/dom-buffer-flush';
|
|
import { inject as service } from '@ember/service';
|
|
import { get } from '@ember/object';
|
|
|
|
export default DomBufferFlushComponent.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, i) {
|
|
if (item.getAttribute('data-checked') === 'true') {
|
|
item.onchange({ target: item });
|
|
}
|
|
});
|
|
},
|
|
},
|
|
});
|