testing macros state

This commit is contained in:
sanjayk03-dev
2023-12-30 05:29:52 +05:30
parent dd0bf48d34
commit 95ad694184
6 changed files with 51 additions and 9 deletions

View File

@@ -58,5 +58,15 @@ module.exports = {
this.toolpath_progress = 0;
this.load_toolpath(file, file_time);
},
saveMacros: function(){
var macrosName = document.getElementById("macros-name").value;
var macrosColor = document.getElementById("macros-color").value;
if(this.config.macros == undefined) return;
this.config.macros.push({
id:Math.random(),
name:macrosName,
color:macrosColor
})
},
}
}