From d8b8e40faea70476602d487ad668a998ca241b02 Mon Sep 17 00:00:00 2001 From: sanjayk03-dev Date: Fri, 12 Jan 2024 03:25:57 +0530 Subject: [PATCH] testing with logs --- src/js/control-view.js | 2 ++ src/js/macros.js | 1 + 2 files changed, 3 insertions(+) diff --git a/src/js/control-view.js b/src/js/control-view.js index ab701f6..16d432b 100644 --- a/src/js/control-view.js +++ b/src/js/control-view.js @@ -504,11 +504,13 @@ module.exports = { SvelteComponents.showDialog("Probe", { probeType }); }, runMacros : function(id){ + console.log(id); if( this.config.macros[id].gcode_file_name != this.state.selected || this.config.macros[id].gcode_file_time != this.state.selected_time ){ this.state.selected=this.config.macros[id].gcode_file_name; this.state.selected_time=this.config.macros[id].gcode_file_time } try{ + console.log(this.state.selected, this.state.selected_time); this.load(); this.start_pause(); }catch(error){ diff --git a/src/js/macros.js b/src/js/macros.js index 3e3e154..22ed472 100644 --- a/src/js/macros.js +++ b/src/js/macros.js @@ -122,6 +122,7 @@ module.exports = { this.state.selected_time; this.cancelMacros(this.tab - 1); this.confirmSave = false; + console.log(this.config.macros); try { await api.put("config/save", this.config); console.log("Successfully saved");