final test

This commit is contained in:
sanjayk03-dev
2024-01-30 22:04:32 +05:30
parent 452ee7775c
commit baf7b5ff29
2 changed files with 3 additions and 3 deletions

View File

@@ -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");
}
},

View File

@@ -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