logging values

This commit is contained in:
sanjayk03-dev
2024-02-22 04:15:30 +05:30
parent db1261b4c4
commit e3dd75df69
3 changed files with 3 additions and 1 deletions

View File

@@ -545,6 +545,7 @@ module.exports = {
}
try {
this.load();
console.log(this.config.macros[id].alert);
if (this.config.macros[id].alert == true) {
this.macrosLoading = true;
} else {

View File

@@ -72,6 +72,7 @@ module.exports = {
},
editedAlert: function (event) {
if (this.tab != 0 && this.config.macros[this.tab - 1].alert != event.target.value) {
console.log(event.target.value);
this.$dispatch("macros-edited");
}
},

View File

@@ -83,7 +83,7 @@ script#macros-template(type="text/x-template")
input.input-color(type="color",id="macros-color",value="#ffffff",@change="editedColor")
input.input-name(type="text",minlength='1',maxlength='15',id="macros-name" ,v-model="macrosName",@keypress="editedName")
div
input.input-alert(type="checkbox",id="macros-alert" v-model="macrosAlert",@change="editedAlert")
input.input-alert(type="checkbox",id="macros-alert" value="false",@change="editedAlert")
label Would you like an alert when running this macro?
p.title Macros G-Code
.flex-row-container