minor fixes

This commit is contained in:
sanjayk03-dev
2024-04-06 14:52:27 +05:30
parent a698aed0e8
commit 302f4b817e
2 changed files with 6 additions and 3 deletions

View File

@@ -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;

View File

@@ -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")