bugfix: min_extrude_temp from config file (extrude/retract buttons on dashboard)

Signed-off-by: Stefan Dej <meteyou@gmail.com>
This commit is contained in:
Stefan Dej 2020-09-01 20:19:53 +02:00
parent 16b6ed6000
commit 890a3e3332
2 changed files with 10 additions and 5 deletions

View File

@ -50,22 +50,19 @@
feedrate: 5,
loadingRetract: false,
loadingDetract: false,
extruder: null,
}
},
computed: {
...mapState({
loadings: state => state.loadings,
printer_state: state => state.printer.print_stats.state,
config: state => state.printer.configfile.config,
}),
...mapGetters([
'getMacros',
'getCurrentExtruder',
]),
extruder: {
get: function() {
return this.$store.getters.getCurrentExtruder;
}
}
},
methods: {
setFeedAmount(value) {
@ -92,6 +89,12 @@
this.loadingRetract = loadings.includes('extruderRetract');
this.loadingDetract = loadings.includes('extruderDetract');
},
config: {
handler() {
this.extruder = this.getCurrentExtruder;
},
immediate: true
}
}
}
</script>

View File

@ -259,6 +259,8 @@ export default {
},
getCurrentExtruder: state => {
if (state.printer.configfile.config === null) return null;
let extruder = {
name: "",
status: null,