]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/attachments-list.js
Add default_template as Book setting
[bookstack] / resources / js / components / attachments-list.js
index 34979c2e7a8207d376aa12534b0d3745e3a34d7d..dfefd9b7f84afb24c1cdb77dd8dbe22281dc1533 100644 (file)
@@ -1,10 +1,11 @@
+import {Component} from "./component";
+
 /**
  * Attachments List
  * Adds '?open=true' query to file attachment links
  * when ctrl/cmd is pressed down.
- * @extends {Component}
  */
-class AttachmentsList {
+export class AttachmentsList extends Component {
 
     setup() {
         this.container = this.$el;
@@ -42,6 +43,4 @@ class AttachmentsList {
             link.removeAttribute('target');
         }
     }
-}
-
-export default AttachmentsList;
\ No newline at end of file
+}
\ No newline at end of file