]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/webhook-events.js
Opensearch: Fixed XML declaration when php short tags enabled
[bookstack] / resources / js / components / webhook-events.js
index 54080d36e22693ed61e47abac0f5454ccdd856b0..68661972d3255a362de6796d48d11d14a6e8452b 100644 (file)
@@ -1,14 +1,14 @@
-
 /**
  * Webhook Events
  * Manages dynamic selection control in the webhook form interface.
- * @extends {Component}
  */
-class WebhookEvents {
+import {Component} from './component';
+
+export class WebhookEvents extends Component {
 
     setup() {
         this.checkboxes = this.$el.querySelectorAll('input[type="checkbox"]');
-        this.allCheckbox = this.$refs.all;
+        this.allCheckbox = this.$el.querySelector('input[type="checkbox"][value="all"]');
 
         this.$el.addEventListener('change', event => {
             if (event.target.checked && event.target === this.allCheckbox) {
@@ -28,5 +28,3 @@ class WebhookEvents {
     }
 
 }
-
-export default WebhookEvents;
\ No newline at end of file