download macros function

This commit is contained in:
sanjayk03-dev
2024-06-02 04:14:24 +05:30
parent edabc1b1af
commit cffc910791
2 changed files with 29 additions and 0 deletions

View File

@@ -319,6 +319,10 @@ script#control-view-template(type="text/x-template")
@click="deleteGCode = true",
:disabled="!state.selected || !is_ready",style="height:100px;width:100px;font-weight:normal")
img(src="images/delete_gcode.png" style="height: 30px;")
a(download, title="Download Macros",
:href="'/api/macros/download/' + state.macros_list.map(item => item.file_name).join(',')")
button.pure-button(style="height:100px;width:100px") Download Macros
message.error-message(:show.sync="deleteGCode")
h3(slot="header") Select files to delete: