fixing checkbox
This commit is contained in:
@@ -545,7 +545,7 @@ module.exports = {
|
||||
}
|
||||
try {
|
||||
this.load();
|
||||
if (this.config.macros[id].alert) {
|
||||
if (this.config.macros[id].alert == true) {
|
||||
this.macrosLoading = true;
|
||||
} else {
|
||||
setImmediate(() => this.start_pause());
|
||||
|
||||
@@ -74,6 +74,7 @@ module.exports = {
|
||||
editedAlert: function (event) {
|
||||
if (this.tab != 0 && this.config.macros[this.tab - 1].alert != event.target.value) {
|
||||
this.$dispatch("macros-edited");
|
||||
this.macrosAlert = event.target.value;
|
||||
}
|
||||
},
|
||||
editedName: function (event) {
|
||||
@@ -214,7 +215,6 @@ module.exports = {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
var file_name = this.fileName == "default" ? formattedFilename + ".ngc" : this.fileName;
|
||||
var file = this.newGcode;
|
||||
|
||||
|
||||
@@ -82,9 +82,9 @@ script#macros-template(type="text/x-template")
|
||||
.input-container
|
||||
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")
|
||||
label Would you like an alert when running this macro?
|
||||
div
|
||||
input.input-alert(type="checkbox",id="macros-alert" v-model="macrosAlert",@change="editedAlert")
|
||||
label Would you like an alert when running this macro?
|
||||
p.title Macros G-Code
|
||||
.flex-row-container
|
||||
select(id="gcode-select",title="Select previously uploaded GCode programs.",selected
|
||||
|
||||
Reference in New Issue
Block a user