]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/tabs.js
Updated command classes to include "Command" in name
[bookstack] / resources / js / components / tabs.js
index ebab4191c105c97e656880136a4ec64c146ef957..560dc6273e3937eeb0744c3b8ae9210eb9bb6d92 100644 (file)
@@ -1,4 +1,4 @@
-import {Component} from "./component";
+import {Component} from './component';
 
 /**
  * Tabs
@@ -42,6 +42,8 @@ export class Tabs extends Component {
             const selected = tabSection === sectionId;
             tab.setAttribute('aria-selected', selected ? 'true' : 'false');
         }
+
+        this.$emit('change', {showing: sectionId});
     }
 
-}
\ No newline at end of file
+}