diff --git a/webapp/src/components/tabContentComponents/controlComponents/paneControl.vue b/webapp/src/components/tabContentComponents/controlComponents/paneControl.vue
index 34c4776a..7080daac 100644
--- a/webapp/src/components/tabContentComponents/controlComponents/paneControl.vue
+++ b/webapp/src/components/tabContentComponents/controlComponents/paneControl.vue
@@ -2,50 +2,6 @@
- -
- Configure
-
-
Keyboard Step Size
-
-
-
-
-
-
-
Position
-
-
Autofocus
@@ -170,15 +133,6 @@ export default {
stageAvailable() {
return this.thingAvailable("stage");
},
- // Note that as stepSize and invert are set based on internals we can use
- // get() and set() to interact with the store. Instead use a deep watcher to
- // update the store (see ``watch:`` below)
- stepSize() {
- return this.$store.state.navigationStepSize;
- },
- invert() {
- return this.$store.state.navigationInvert;
- },
baseUri: function () {
return this.$store.getters.baseUri;
},
@@ -190,21 +144,6 @@ export default {
},
},
- watch: {
- stepSize: {
- deep: true,
- handler(newVal) {
- this.$store.commit("changeNavigationStepSize", newVal);
- },
- },
- invert: {
- deep: true,
- handler(newVal) {
- this.$store.commit("changeNavigationInvert", newVal);
- },
- },
- },
-
async mounted() {
let self = this;
// A global signal listener to perform a move action
@@ -215,13 +154,12 @@ export default {
});
// A global signal listener to perform a move in multiples of a step size
this.$root.$on("globalMoveStepEvent", (x_steps, y_steps, z_steps) => {
- this.$root.$emit(
- "globalMoveEvent",
- x_steps * this.stepSize.x * (this.invert.x ? -1 : 1),
- y_steps * this.stepSize.y * (this.invert.y ? -1 : 1),
- z_steps * this.stepSize.z * (this.invert.z ? -1 : 1),
- false,
- );
+ const navigationStepSize = this.$store.state.navigationStepSize;
+ const navigationInvert = this.$store.state.navigationInvert;
+ const x = x_steps * navigationStepSize.x * (navigationInvert.x ? -1 : 1);
+ const y = y_steps * navigationStepSize.y * (navigationInvert.y ? -1 : 1);
+ const z = z_steps * navigationStepSize.z * (navigationInvert.z ? -1 : 1);
+ this.$root.$emit("globalMoveEvent", x, y, z, false);
});
// Update the current position in text boxes
await this.updatePosition();
diff --git a/webapp/src/components/tabContentComponents/settingsComponents/displaySettings.vue b/webapp/src/components/tabContentComponents/settingsComponents/displaySettings.vue
index 450c803c..4a5476ba 100644
--- a/webapp/src/components/tabContentComponents/settingsComponents/displaySettings.vue
+++ b/webapp/src/components/tabContentComponents/settingsComponents/displaySettings.vue
@@ -11,7 +11,7 @@ import streamSettings from "./displaySetttingsComponents/streamSettings.vue";
// Export main app
export default {
- name: "SettingsContent",
+ name: "DisplaySettings",
components: {
streamSettings,
diff --git a/webapp/src/components/tabContentComponents/settingsComponents/stageControlSettings.vue b/webapp/src/components/tabContentComponents/settingsComponents/stageControlSettings.vue
new file mode 100644
index 00000000..d8118876
--- /dev/null
+++ b/webapp/src/components/tabContentComponents/settingsComponents/stageControlSettings.vue
@@ -0,0 +1,69 @@
+
+
+
+
+
diff --git a/webapp/src/components/tabContentComponents/settingsContent.vue b/webapp/src/components/tabContentComponents/settingsContent.vue
index 51b2867d..97ca3fbc 100644
--- a/webapp/src/components/tabContentComponents/settingsContent.vue
+++ b/webapp/src/components/tabContentComponents/settingsContent.vue
@@ -59,6 +59,7 @@