adding to checkbox

This commit is contained in:
sanjayk03-dev
2024-02-22 04:30:11 +05:30
parent 2eb775d418
commit e7795b2742
2 changed files with 3 additions and 4 deletions

View File

@@ -71,9 +71,8 @@ module.exports = {
this.$dispatch("macros-edited");
}
},
editedAlert: function (event) {
if (this.tab != 0 && this.config.macros[this.tab - 1].alert != event.target.value) {
console.log(event.target.value);
editedAlert: function () {
if (this.tab != 0 && this.config.macros[this.tab - 1].alert != this.isChecked) {
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="isChecked")
input.input-alert(type="checkbox",id="macros-alert" v-model="isChecked",@change="editedAlert")
label Would you like an alert when running this macro?
p.title Macros G-Code
.flex-row-container