]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/attachments.js
Fixed role entity permissions ignoring inheritance
[bookstack] / resources / js / components / attachments.js
index a01147aa299c43b372a7986ed467b602d42f2aa4..b4e400aeb716b53047b0d7c80492e2a9dbdba7b0 100644 (file)
@@ -43,7 +43,9 @@ export class Attachments extends Component {
 
     reloadList() {
         this.stopEdit();
 
     reloadList() {
         this.stopEdit();
-        this.mainTabs.components.tabs.show('items');
+        /** @var {Tabs} */
+        const tabs = window.$components.firstOnElement(this.mainTabs, 'tabs');
+        tabs.show('items');
         window.$http.get(`/attachments/get/page/${this.pageId}`).then(resp => {
             this.list.innerHTML = resp.data;
             window.$components.init(this.list);
         window.$http.get(`/attachments/get/page/${this.pageId}`).then(resp => {
             this.list.innerHTML = resp.data;
             window.$components.init(this.list);
@@ -71,6 +73,4 @@ export class Attachments extends Component {
         this.listContainer.classList.remove('hidden');
     }
 
         this.listContainer.classList.remove('hidden');
     }
 
-}
-
-export default Attachments;
\ No newline at end of file
+}
\ No newline at end of file