From 488d98045e7476ed11e53c13d9498a9db3165bbc Mon Sep 17 00:00:00 2001 From: Ramires Viana <59319979+ramiresviana@users.noreply.github.com> Date: Fri, 12 Mar 2021 15:28:49 +0000 Subject: [PATCH] fix: download current dir on file listing --- frontend/src/views/files/Listing.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/files/Listing.vue b/frontend/src/views/files/Listing.vue index c14462df..de67d37b 100644 --- a/frontend/src/views/files/Listing.vue +++ b/frontend/src/views/files/Listing.vue @@ -588,8 +588,12 @@ export default { let files = [] - for (let i of this.selected) { - files.push(this.req.items[i].url) + if (this.selectedCount > 0) { + for (let i of this.selected) { + files.push(this.req.items[i].url) + } + } else { + files.push(this.$route.path) } api.download(format, ...files)