From 0a29515e3a962ecdf2a909f5d7589c6c17de882e Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 19 Jul 2017 08:30:08 +0100 Subject: [PATCH] Fix download single folder Former-commit-id: 6a33652b05f7ce5561253888997a2e48d3375730 [formerly cc08258ac6555353e6a5354b980370de6bd6f72c] [formerly a33e4246bca6444b99aed5cc1d7d4168613b3cf6 [formerly 34a3fec044d8e18bfdd5533ef3e30f685822811e]] Former-commit-id: 71b1d7e3f84da16d32ab69efaa103bb6f811b3eb [formerly 7d7db781a856cee5942f9c67240fc25416cb4a35] Former-commit-id: 2abca1999fa05fcc1449b993e02ae1ed76a4ff73 --- assets/src/components/buttons/Download.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/src/components/buttons/Download.vue b/assets/src/components/buttons/Download.vue index b356f97e..d2bf4a0c 100644 --- a/assets/src/components/buttons/Download.vue +++ b/assets/src/components/buttons/Download.vue @@ -26,7 +26,7 @@ export default { // If we are on a listing and there is one element selected, // download it. - if (this.selectedCount === 1) { + if (this.selectedCount === 1 && !this.req.items[this.selected[0]].isDir) { api.download(null, this.req.items[this.selected[0]].url) return }