logging values
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user