[subtask, mastertask] download fileov

This commit is contained in:
romankko2 committed 2023-06-30 17:47:33 +02:00
1 parent 25321a56b0
commit 412530fb93
7 files changed
+90 -25

No files matched your search

@@ -262,15 +262,6 @@ export default {
}
},
async downloadFile(id) {
try {
const file = await this.$axios.get_auth_data(`v1/subtasks/${this.subtask.id}`, { responseType: "arraybuffer" })
FileSaver.saveAs(file.files[id].path, file.files[id].name)
} catch (error) {
this.$toast.error(error)
}
},
openDeleteTaskModal(subtask) {
this.$events.emit("show-delete-task-modal", { subtask })
},