Enable download for directories

downloads as zip
This commit is contained in:
Girish Ramakrishnan
2020-11-29 15:49:34 -08:00
parent 529d445d06
commit d5ab13a00e

View File

@@ -156,8 +156,6 @@ app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Cl
function download(entry) {
var filePath = sanitize($scope.cwd + '/' + entry.fileName);
if (entry.isDirectory) return;
Client.filesGet($scope.id, $scope.type, filePath, 'download', function (error) {
if (error) return Client.error(error);
});
@@ -747,7 +745,6 @@ app.controller('FileManagerController', ['$scope', '$translate', '$timeout', 'Cl
click: function ($itemScope, $event, entry) { extract(entry); }
}, {
text: tr['filemanager.list.menu.download'],
displayed: function ($itemScope, $event, entry) { return !entry.isDirectory; },
click: function ($itemScope, $event, entry) { download(entry); }
}, {
text: tr['filemanager.list.menu.delete'],