mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
[subtask, mastertask] download fileov
This commit is contained in:
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 })
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user