]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/attachments.js
Applied shelf book sort changes from testing
[bookstack] / resources / js / components / attachments.js
index a01147aa299c43b372a7986ed467b602d42f2aa4..d8a506270dfcb3c8764364db961d921a9300c24a 100644 (file)
@@ -43,7 +43,9 @@ export class Attachments extends Component {
 
     reloadList() {
         this.stopEdit();
-        this.mainTabs.components.tabs.show('items');
+        /** @var {Tabs} */
+        const tabs = window.$components.firstOnElement(this.mainTabs, 'tabs');
+        tabs.show('attachment-panel-items');
         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');
     }
 
-}
-
-export default Attachments;
\ No newline at end of file
+}
\ No newline at end of file