4 * Manages dynamic selection control in the webhook form interface.
10 this.checkboxes = this.$el.querySelectorAll('input[type="checkbox"]');
11 this.allCheckbox = this.$el.querySelector('input[type="checkbox"][value="all"]');
13 this.$el.addEventListener('change', event => {
14 if (event.target.checked && event.target === this.allCheckbox) {
15 this.deselectIndividualEvents();
16 } else if (event.target.checked) {
17 this.allCheckbox.checked = false;
22 deselectIndividualEvents() {
23 for (const checkbox of this.checkboxes) {
24 if (checkbox !== this.allCheckbox) {
25 checkbox.checked = false;
32 export default WebhookEvents;