event for input

This commit is contained in:
sanjayk03-dev
2024-01-30 20:28:56 +05:30
parent 2340ba5556
commit 4393a15a9e
2 changed files with 15 additions and 3 deletions

View File

@@ -69,6 +69,18 @@ module.exports = {
this.newGcode = event.target.value;
this.$dispatch("macros-edited");
},
editedColor: function (event) {
console.log("color: ", event.target.value);
if (this.config[this.tab - 1].color != event.target.value) {
console.log("Value Changed");
}
},
editedName: function (event) {
console.log("name: ", event.target.value);
if (this.config[this.tab - 1].name != event.target.value) {
console.log("Value Changed");
}
},
showDialogAsync: function (title, file) {
return new Promise((resolve, reject) => {
SvelteComponents.showDialog(title, {