changing macros page

This commit is contained in:
sanjayk03-dev
2024-01-29 15:10:57 +05:30
parent 270383bf90
commit 3107500ff7
2 changed files with 15 additions and 35 deletions

View File

@@ -9,13 +9,13 @@ module.exports = {
data: function () {
return {
tab: "1",
tab: "0",
confirmReset: false,
confirmSave: false,
deleteSelected: false,
deleteGCode: false,
edited: false,
maxLimitReached:false,
maxLimitReached: false,
newGcode: new Array(this.config.macros.length).fill(""),
};
},
@@ -41,9 +41,12 @@ module.exports = {
macrosLength: function () {
return this.config.macros.length > 8;
},
macrosList: function () {
macrosGCodeList: function () {
return this.config.macrosList.map(el => el.file_name);
},
macrosList: function () {
return this.config.macros.map(item => item.name);
},
getMacrosColor: function () {
return this.config.macros[this.tab - 1]["color"];
},
@@ -342,5 +345,8 @@ module.exports = {
}
this.deleteSelected = false;
},
loadMacrosSettings: function () {
console.log("selected : ",this.tab);
},
},
};