diff --git a/src/components/appContent.vue b/src/components/appContent.vue index 811561a7..f20ba123 100644 --- a/src/components/appContent.vue +++ b/src/components/appContent.vue @@ -8,6 +8,7 @@
{ - // Update plugins - this.updatePlugins().then(() => { - // Start initialisation modals - this.startModals(); - }); - if (ready) { - console.log("Left panel now ready"); - } else { - console.log("Right panel now disabled"); - this.currentTab = "connect"; + // Update plugins + this.updatePlugins().then(() => { + // Start initialisation modals + this.startModals(); + }); } } ); @@ -247,10 +243,6 @@ export default { this.$root.$on("globalSwitchTab", tabID => { this.currentTab = tabID; }); - // A global signal listener to the first primary tab - this.$root.$on("globalSwitchTabPrimary", () => { - this.currentTab = "view"; - }); }, beforeDestroy() { @@ -281,6 +273,11 @@ export default { }, startModals: function() { this.$refs["calibrationModal"].show(); + }, + enterApp: function() { + // Stuff to do once connected and all init modals are finished + console.log("Entering main application"); + this.currentTab = "view"; } } }; diff --git a/src/components/modalComponents/calibrationModal.vue b/src/components/modalComponents/calibrationModal.vue index f8122a81..368ed29d 100644 --- a/src/components/modalComponents/calibrationModal.vue +++ b/src/components/modalComponents/calibrationModal.vue @@ -231,6 +231,10 @@ export default { } }, + mounted() { + this.$refs["calibrationModalEl"].addEventListener("hidden", this.onHide); + }, + methods: { show: function() { // Get current settings @@ -258,6 +262,11 @@ export default { this.ready = false; }, + onHide: function() { + console.log("UIKit modal hidden"); + this.$emit("onClose"); + }, + getSettings: function() { return axios .get(this.settingsUri)