From 302f4b817e9d8ef2fe31bd458ad3dc007658cdb4 Mon Sep 17 00:00:00 2001 From: sanjayk03-dev Date: Sat, 6 Apr 2024 14:52:27 +0530 Subject: [PATCH] minor fixes --- src/js/macros.js | 2 ++ src/pug/templates/macros.pug | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/js/macros.js b/src/js/macros.js index fe3f95f..ceca6c1 100644 --- a/src/js/macros.js +++ b/src/js/macros.js @@ -134,6 +134,8 @@ module.exports = { console.error("Restore Failed: ", error); alert("Restore failed"); } + this.fileName = "default"; + this.GCodeNotFound = false; }, upload: async function (e) { const files = e.target.files || e.dataTransfer.files; diff --git a/src/pug/templates/macros.pug b/src/pug/templates/macros.pug index 2b425a5..c71f484 100644 --- a/src/pug/templates/macros.pug +++ b/src/pug/templates/macros.pug @@ -29,8 +29,9 @@ script#macros-template(type="text/x-template") |  Selected message(:show.sync="macroFound") - h3(slot="header") The file is currently being used by a macro. - p(slot="body") + h3(slot="header") Alert + div(slot="body") + p The file is currently being used by a macro. p You need to re-select a file for the macro. div(slot="footer") button.pure-button(@click="macroFound = false") Cancel @@ -70,7 +71,7 @@ script#macros-template(type="text/x-template") message(:show.sync="GCodeNotFound") h3(slot="header") File not found - p(slot="body") + div(slot="body") p It seems like the file you selected cannot be found. div(slot="footer") button.pure-button.button-error(@click="removeFromList")