Fix download single folder

pull/147/head
Henrique Dias 2017-07-19 08:30:08 +01:00
parent d48867f603
commit 34a3fec044
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
1 changed files with 1 additions and 1 deletions

View File

@ -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
}