fixed error in alert box, added icon in upload

This commit is contained in:
sanjayk03-dev
2024-01-04 23:01:31 +05:30
parent 6521ea338a
commit 2752dcb8f7
2 changed files with 7 additions and 2 deletions

View File

@@ -138,7 +138,6 @@ module.exports = {
await api.put("config/save", this.config);
console.log("Successfully flushed");
this.$dispatch("update");
this.confirmReset = false;
} catch (error) {
console.error("Restore Failed: ", error);
alert("Restore failed");

View File

@@ -44,12 +44,13 @@ script#macros-template(type="text/x-template")
input.input-name(type="text",minlength='1',maxlength='15',id="macros-name-0")
p.title G-Code
select(title="Select previously uploaded GCode programs.",
@change="load", :disabled="!is_ready",
v-model="state.selected",@change="load", :disabled="!is_ready",
style="max-width:100%;height:40px;border-radius:5px")
option(v-for="file in state.files", :value="file") {{file}}
button.pure-button(title="Upload a new GCode program.", @click="open",
:disabled="!is_ready",style="height:40px;width:130px;font-weight:normal;border-radius:5px;margin-left:4px;background-color:#5a9ad7;color:#fff;display:flex;align-items:center;justify-content:space-around") Upload
.fa.fa-upload
form.gcode-file-input.file-upload
input(type="file", @change="upload", :disabled="!is_ready",
@@ -75,6 +76,7 @@ script#macros-template(type="text/x-template")
button.pure-button(title="Upload a new GCode program.", @click="open",
:disabled="!is_ready",style="height:40px;width:130px;font-weight:normal;border-radius:5px;margin-left:4px;background-color:#5a9ad7;color:#fff;display:flex;align-items:center;justify-content:space-around") Upload
.fa.fa-upload
form.gcode-file-input.file-upload
input(type="file", @change="upload", :disabled="!is_ready",
@@ -100,6 +102,7 @@ script#macros-template(type="text/x-template")
button.pure-button(title="Upload a new GCode program.", @click="open",
:disabled="!is_ready",style="height:40px;width:130px;font-weight:normal;border-radius:5px;margin-left:4px;background-color:#5a9ad7;color:#fff;display:flex;align-items:center;justify-content:space-around") Upload
.fa.fa-upload
form.gcode-file-input.file-upload
input(type="file", @change="upload", :disabled="!is_ready",
@@ -125,6 +128,7 @@ script#macros-template(type="text/x-template")
button.pure-button(title="Upload a new GCode program.", @click="open",
:disabled="!is_ready",style="height:40px;width:130px;font-weight:normal;border-radius:5px;margin-left:4px;background-color:#5a9ad7;color:#fff;display:flex;align-items:center;justify-content:space-around") Upload
.fa.fa-upload
form.gcode-file-input.file-upload
input(type="file", @change="upload", :disabled="!is_ready",
@@ -150,6 +154,7 @@ script#macros-template(type="text/x-template")
button.pure-button(title="Upload a new GCode program.", @click="open",
:disabled="!is_ready",style="height:40px;width:130px;font-weight:normal;border-radius:5px;margin-left:4px;background-color:#5a9ad7;color:#fff;display:flex;align-items:center;justify-content:space-around") Upload
.fa.fa-upload
form.gcode-file-input.file-upload
input(type="file", @change="upload", :disabled="!is_ready",
@@ -175,6 +180,7 @@ script#macros-template(type="text/x-template")
button.pure-button(title="Upload a new GCode program.", @click="open",
:disabled="!is_ready",style="height:40px;width:130px;font-weight:normal;border-radius:5px;margin-left:4px;background-color:#5a9ad7;color:#fff;display:flex;align-items:center;justify-content:space-around") Upload
.fa.fa-upload
form.gcode-file-input.file-upload
input(type="file", @change="upload", :disabled="!is_ready",