From eb551e5b4a84c7785969934654bc1cfce9f1c3a1 Mon Sep 17 00:00:00 2001 From: sanjayk03-dev Date: Thu, 4 Apr 2024 23:57:16 +0530 Subject: [PATCH] changing on condition --- src/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/app.js b/src/js/app.js index cab4bfc..fa0206a 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -431,7 +431,9 @@ module.exports = new Vue({ this.display_units = this.config.settings["units"]; try { await api.put("config/save", this.config); - setImmediate(() => this.state['5vv'] = 6); + if(selected_tool == "pwncnc-vfd" && saveModbus){ + setImmediate(() => this.state['5vv'] = 6); + } this.modified = false; } catch (error) { console.error("Save failed:", error);