added macros found while deleting, alert for gcode not found

This commit is contained in:
sanjayk03-dev
2024-04-06 13:05:00 +05:30
parent ae26a9e6d1
commit 37772b4771
2 changed files with 51 additions and 4 deletions

View File

@@ -24,10 +24,20 @@ script#macros-template(type="text/x-template")
p(slot="body")
div(slot="footer")
button.pure-button(@click="deleteGCode = false") Cancel
button.pure-button.button-error(@click="delete_current")
button.pure-button.button-error(@click="check_gcode_with_macro")
.fa.fa-trash
|  Selected
message(:show.sync="macroFound")
h3(slot="header") The file is currently being used by a macro.
p(slot="body")
p You need to re-select a file for the macro.
div(slot="footer")
button.pure-button(@click="macroFound = false") Cancel
button.pure-button.button-error(@click="delete_current")
.fa.fa-trash
|  Delete Anyway
message(:show.sync="deleteSelected")
h3(slot="header") Delete Selected Macro?
p(slot="body")
@@ -58,6 +68,15 @@ script#macros-template(type="text/x-template")
button.pure-button(@click="addMacros = false") Cancel
button.pure-button.button-submit(@click="add_new_macro") Add
message(:show.sync="GCodeNotFound")
h3(slot="header") File not found
p(slot="body")
p It seems like the file you selected cannot be found.
div(slot="footer")
button.pure-button.button-error(@click="removeFromList")
.fa.fa-trash
|  Remove
h1 Macros Configuration
.flex-row-container
button.config-button.button-blue(title="Reset Macros", @click="confirmReset=true") Delete All