adding to checkbox
This commit is contained in:
@@ -71,9 +71,8 @@ module.exports = {
|
|||||||
this.$dispatch("macros-edited");
|
this.$dispatch("macros-edited");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
editedAlert: function (event) {
|
editedAlert: function () {
|
||||||
if (this.tab != 0 && this.config.macros[this.tab - 1].alert != event.target.value) {
|
if (this.tab != 0 && this.config.macros[this.tab - 1].alert != this.isChecked) {
|
||||||
console.log(event.target.value);
|
|
||||||
this.$dispatch("macros-edited");
|
this.$dispatch("macros-edited");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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-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")
|
input.input-name(type="text",minlength='1',maxlength='15',id="macros-name" ,v-model="macrosName",@keypress="editedName")
|
||||||
div
|
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?
|
label Would you like an alert when running this macro?
|
||||||
p.title Macros G-Code
|
p.title Macros G-Code
|
||||||
.flex-row-container
|
.flex-row-container
|
||||||
|
|||||||
Reference in New Issue
Block a user