bugfix: ZOffsetPanel.vue current offset

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej 2020-09-01 20:42:13 +02:00
parent 84c9040e2a
commit 39f3cfe824
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@
<v-card-text class="py-1"> <v-card-text class="py-1">
<v-row class=""> <v-row class="">
<v-col class="col-12 pb-0 text-center"> <v-col class="col-12 pb-0 text-center">
<p>Current Offset: {{ base_zpos.toFixed(2) }}mm</p> <p>Current Offset: {{ homing_origin.length > 1 ? homing_origin[2].toFixed(2) : 0.00 }}mm</p>
</v-col> </v-col>
</v-row> </v-row>
<v-row> <v-row>
@ -51,7 +51,7 @@
computed: { computed: {
...mapState({ ...mapState({
loadings: state => state.loadings, loadings: state => state.loadings,
base_zpos: state => state.printer.gcode_move.base_zpos, homing_origin: state => state.printer.gcode_move.homing_origin,
printer_state: state => state.printer.print_stats.state, printer_state: state => state.printer.print_stats.state,
homed_axis: state => state.printer.toolhead.homed_axes, homed_axis: state => state.printer.toolhead.homed_axes,
}), }),

View File

@ -110,7 +110,7 @@ export default new Vuex.Store({
gcode_move: { gcode_move: {
extrude_factor: 1, extrude_factor: 1,
speed_factor: 1, speed_factor: 1,
base_zpos: 0, homing_origin: [0,0,0,0],
absolute_coordinates: true, absolute_coordinates: true,
absolute_extrude: true, absolute_extrude: true,
speed: 0, speed: 0,