]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/ajax-delete-row.js
Started refactor and alignment of component system
[bookstack] / resources / js / components / ajax-delete-row.js
index 2feb3d5ac72bcaf9e10ec252af187ad633efe4c2..f1af7f6cb10e97d2e65cfb1c4e49d1d5a4e7580e 100644 (file)
@@ -1,10 +1,7 @@
-/**
- * AjaxDelete
- * @extends {Component}
- */
 import {onSelect} from "../services/dom";
+import {Component} from "./component";
 
-class AjaxDeleteRow {
+export class AjaxDeleteRow extends Component {
     setup() {
         this.row = this.$el;
         this.url = this.$opts.url;
@@ -27,6 +24,4 @@ class AjaxDeleteRow {
             this.row.style.pointerEvents = null;
         });
     }
-}
-
-export default AjaxDeleteRow;
\ No newline at end of file
+}
\ No newline at end of file