Skip to content
Snippets Groups Projects
Verified Commit d8777605 authored by jfriedli's avatar jfriedli
Browse files

fixed wrong dispatch

parent a6554a48
No related branches found
No related tags found
2 merge requests!364Develop,!360Resolve "Refactor"
Pipeline #44684 failed
......@@ -191,9 +191,9 @@ export default {
return getIconByMime(mime)
},
async triggerBulkDownload () {
// needs at least 4 files to be downloadable as zip
this.$store.commit('Download/setBulkZipLink', '')
// needs at least more than 4 files to be downloadable as zip
if (this.cleanedFiles?.successful?.length > 4) {
this.bulkZipLink = ''
const body = {
download_list: []
}
......@@ -206,7 +206,7 @@ export default {
})
}
try {
await this.$store.dispatch('Upload/bulkDownload', body)
await this.$store.dispatch('Download/triggerBulkDownload', body)
} catch (e) {
this.$q.notify({
color: 'negative',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment