capturing inputname and color
This commit is contained in:
@@ -70,15 +70,13 @@ module.exports = {
|
|||||||
this.$dispatch("macros-edited");
|
this.$dispatch("macros-edited");
|
||||||
},
|
},
|
||||||
editedColor: function (event) {
|
editedColor: function (event) {
|
||||||
console.log("color: ", event.target.value);
|
if (this.config.macros[this.tab - 1].color != event.target.value) {
|
||||||
if (this.config[this.tab - 1].color != event.target.value) {
|
this.$dispatch("macros-edited");
|
||||||
console.log("Value Changed");
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
editedName: function (event) {
|
editedName: function (event) {
|
||||||
console.log("name: ", event.target.value);
|
if (this.config.macros[this.tab - 1].name != event.target.value) {
|
||||||
if (this.config[this.tab - 1].name != event.target.value) {
|
this.$dispatch("macros-edited");
|
||||||
console.log("Value Changed");
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
showDialogAsync: function (title, file) {
|
showDialogAsync: function (title, file) {
|
||||||
@@ -108,7 +106,9 @@ module.exports = {
|
|||||||
} else {
|
} else {
|
||||||
this.newGcode = "";
|
this.newGcode = "";
|
||||||
}
|
}
|
||||||
this.$dispatch("macros-edited");
|
if (file != this.config.macros[this.tab - 1].file_name) {
|
||||||
|
this.$dispatch("macros-edited");
|
||||||
|
}
|
||||||
},
|
},
|
||||||
uploadMacrosGcode: async function (e) {
|
uploadMacrosGcode: async function (e) {
|
||||||
const files = e.target.files || e.dataTransfer.files;
|
const files = e.target.files || e.dataTransfer.files;
|
||||||
|
|||||||
@@ -709,6 +709,7 @@ span.unit
|
|||||||
.submit-macros
|
.submit-macros
|
||||||
height 50px
|
height 50px
|
||||||
width 140px
|
width 140px
|
||||||
|
color #000
|
||||||
margin-top 30px
|
margin-top 30px
|
||||||
font-weight normal
|
font-weight normal
|
||||||
border 0
|
border 0
|
||||||
|
|||||||
Reference in New Issue
Block a user