added one static content

This commit is contained in:
sanjayk03-dev
2024-01-29 13:34:07 +05:30
parent 61b24e0559
commit 1a20ce9ac1
3 changed files with 39 additions and 12 deletions

View File

@@ -546,7 +546,7 @@ module.exports = {
},
runMacros: function (id) {
console.log("index",id);
if (this.config.macros[id].file_name == "") {
if (this.config.macros[id].file_name == "default") {
this.showNoGcodeMessage = true;
} else {
if (this.config.macros[id].file_name != this.state.selected) {

View File

@@ -118,7 +118,6 @@ module.exports = {
}
this.$dispatch("macros-edited");
console.log("file.name", file.name);
console.log("file.name type: ", typeof file.name);
SvelteComponents.showDialog("Upload", {
file,
onComplete: () => {
@@ -158,7 +157,6 @@ module.exports = {
if (!this.config.macrosList.some(item => item.file_name == filename)) {
console.log("new gcode uploaded for macros");
this.config.macrosList.push(gcodeData);
try {
await api.put("config/save", this.config);
this.$dispatch("update");