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:
parent
16b6ed6000
commit
890a3e3332
@ -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>
|
@ -259,6 +259,8 @@ export default {
|
||||
},
|
||||
|
||||
getCurrentExtruder: state => {
|
||||
if (state.printer.configfile.config === null) return null;
|
||||
|
||||
let extruder = {
|
||||
name: "",
|
||||
status: null,
|
||||
|
Loading…
x
Reference in New Issue
Block a user