From 54c78e2735cf695fffe5534581da38249494caa5 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sat, 23 Jan 2021 01:39:11 +0100 Subject: [PATCH] bugfix: add heater change gcode in event list (console history) Signed-off-by: Stefan Dej --- src/inputs/ToolInput.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/inputs/ToolInput.vue b/src/inputs/ToolInput.vue index 1254cbd0..16c5180e 100644 --- a/src/inputs/ToolInput.vue +++ b/src/inputs/ToolInput.vue @@ -54,7 +54,11 @@ } else if (this.min_temp !== undefined && this.value < this.min_temp && parseFloat(this.value) !== 0) { this.value = this.target; Vue.$toast.error("Temperature too low for "+this.name+"! (min: "+this.min_temp+")"); - } else this.$socket.sendObj('printer.gcode.script', { script: this.command+' '+this.attributeName+'='+this.name+' TARGET='+this.value }); + } else { + const gcode = this.command+' '+this.attributeName+'='+this.name+' TARGET='+this.value + this.$store.commit('server/addEvent', { message: gcode, type: 'command' }); + this.$socket.sendObj('printer.gcode.script', { script: gcode }); + } } }, watch: {