final test
This commit is contained in:
@@ -70,12 +70,12 @@ module.exports = {
|
||||
this.$dispatch("macros-edited");
|
||||
},
|
||||
editedColor: function (event) {
|
||||
if (this.config.macros[this.tab - 1].color != event.target.value) {
|
||||
if (this.tab != 0 && this.config.macros[this.tab - 1].color != event.target.value) {
|
||||
this.$dispatch("macros-edited");
|
||||
}
|
||||
},
|
||||
editedName: function (event) {
|
||||
if (this.config.macros[this.tab - 1].name != event.target.value) {
|
||||
if (this.tab != 0 && this.config.macros[this.tab - 1].name != event.target.value) {
|
||||
this.$dispatch("macros-edited");
|
||||
}
|
||||
},
|
||||
|
||||
@@ -81,7 +81,7 @@ script#macros-template(type="text/x-template")
|
||||
p.title Macros Name
|
||||
.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",@change="editedName")
|
||||
input.input-name(type="text",minlength='1',maxlength='15',id="macros-name" ,v-model="macrosName",@keypress="editedName")
|
||||
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