Loading src/components/appContent.vue +10 −1 Original line number Diff line number Diff line Loading @@ -244,7 +244,16 @@ export default { ); }, mounted: function() {}, mounted() { // A global signal listener to switch tab 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() { // Then we call that function here to unwatch Loading src/components/viewComponents/connectDisplay.vue +2 −0 Original line number Diff line number Diff line Loading @@ -283,6 +283,8 @@ export default { this.$store.commit("setConnected"); // Check client and server match this.checkServerVersion(); // Switch tab away from connect this.$root.$emit("globalSwitchTabPrimary"); } else { // Error and no-connect if API v2 is missing var ApiVersionError = `Your microscope is running an old API version.\ Loading Loading
src/components/appContent.vue +10 −1 Original line number Diff line number Diff line Loading @@ -244,7 +244,16 @@ export default { ); }, mounted: function() {}, mounted() { // A global signal listener to switch tab 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() { // Then we call that function here to unwatch Loading
src/components/viewComponents/connectDisplay.vue +2 −0 Original line number Diff line number Diff line Loading @@ -283,6 +283,8 @@ export default { this.$store.commit("setConnected"); // Check client and server match this.checkServerVersion(); // Switch tab away from connect this.$root.$emit("globalSwitchTabPrimary"); } else { // Error and no-connect if API v2 is missing var ApiVersionError = `Your microscope is running an old API version.\ Loading