diff --git a/openflexure_microscope/api/static/src/App.vue b/openflexure_microscope/api/static/src/App.vue index 320b0384..ef216d09 100644 --- a/openflexure_microscope/api/static/src/App.vue +++ b/openflexure_microscope/api/static/src/App.vue @@ -102,9 +102,9 @@ export default { }, handleTheme: function() { var isDark = false; - if (this.$store.state.globalSettings.appTheme == "dark") { + if (this.$store.state.appTheme == "dark") { isDark = true; - } else if (this.$store.state.globalSettings.appTheme == "system") { + } else if (this.$store.state.appTheme == "system") { if (this.systemDark) { isDark = true; } diff --git a/openflexure_microscope/api/static/src/components/appContent.vue b/openflexure_microscope/api/static/src/components/appContent.vue index 08209ffc..27e72e0a 100644 --- a/openflexure_microscope/api/static/src/components/appContent.vue +++ b/openflexure_microscope/api/static/src/components/appContent.vue @@ -214,7 +214,7 @@ export default { computed: { enabledTopTabs: function() { var enabledTabs = this.topTabs; - if (this.$store.state.globalSettings.IHIEnabled) { + if (this.$store.state.IHIEnabled) { enabledTabs.push({ id: "slidescan", icon: "settings_overscan", diff --git a/openflexure_microscope/api/static/src/components/tabContentComponents/aboutComponents/devTools.vue b/openflexure_microscope/api/static/src/components/tabContentComponents/aboutComponents/devTools.vue index f9dfb16d..07806e2f 100644 --- a/openflexure_microscope/api/static/src/components/tabContentComponents/aboutComponents/devTools.vue +++ b/openflexure_microscope/api/static/src/components/tabContentComponents/aboutComponents/devTools.vue @@ -23,6 +23,12 @@ export default { }; }, + mounted() { + if (!this.$store.getters.ready) { + this.currentOrigin = "http://microscope.local:5000"; + } + }, + methods: { overrideAPIHost: function() { this.$store.commit("changeOrigin", this.currentOrigin); diff --git a/openflexure_microscope/api/static/src/components/tabContentComponents/captureComponents/paneCapture.vue b/openflexure_microscope/api/static/src/components/tabContentComponents/captureComponents/paneCapture.vue index 34abb9f6..cd83a3cf 100644 --- a/openflexure_microscope/api/static/src/components/tabContentComponents/captureComponents/paneCapture.vue +++ b/openflexure_microscope/api/static/src/components/tabContentComponents/captureComponents/paneCapture.vue @@ -308,7 +308,7 @@ export default { resizeDims: [640, 480], tags: [], annotations: { - Client: `${process.env.PACKAGE.name}.${process.env.PACKAGE.version}` + Client: "openflexure-microscope-jsclient:builtin" }, scanUri: null }; diff --git a/openflexure_microscope/api/static/src/components/tabContentComponents/galleryComponents/captureCard.vue b/openflexure_microscope/api/static/src/components/tabContentComponents/galleryComponents/captureCard.vue index 7002fdc4..80c33397 100644 --- a/openflexure_microscope/api/static/src/components/tabContentComponents/galleryComponents/captureCard.vue +++ b/openflexure_microscope/api/static/src/components/tabContentComponents/galleryComponents/captureCard.vue @@ -1,7 +1,7 @@