diff --git a/Step/wwwroot/src/modules/under-the-hood/jog-menu.vue b/Step/wwwroot/src/modules/under-the-hood/jog-menu.vue index 499f593a..9c686f9d 100644 --- a/Step/wwwroot/src/modules/under-the-hood/jog-menu.vue +++ b/Step/wwwroot/src/modules/under-the-hood/jog-menu.vue @@ -13,7 +13,10 @@
@@ -37,12 +40,15 @@ export default { }; }, computed: { - axes: function(){ + axes: function() { return this.$store.state.process.axes; }, machineInfo: function() { return this.$store.state.machineInfo; }, + selectedAxisId: function() { + return this.$store.state.process.selectedAxis; + } }, methods: { @@ -79,12 +85,11 @@ export default { this.showAxesMenu = false; this.showIncrMenu = !this.showIncrMenu; }, - getAxesName(){ - + getAxesName() { let id = this.$store.state.process.selectedAxis; - for (const k in this.$store.state.process.axes){ + for (const k in this.$store.state.process.axes) { let a = this.$store.state.process.axes[k]; - if(a.Id == id) return a.Name; + if (a.Id == id) return a.Name; } return null; }