From 599393ffbed177648c17393e2f58836ef94e236f Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Tue, 7 Apr 2020 11:18:13 +0200 Subject: [PATCH] Fix select all action breaks filemanager's contextmenu --- filemanager/js/app.js | 2 ++ filemanager/js/app.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/filemanager/js/app.js b/filemanager/js/app.js index 30e64674f0..970a86561e 100644 --- a/filemanager/js/app.js +++ b/filemanager/js/app.js @@ -1067,6 +1067,8 @@ var filemanagerAPP = /** @class */ (function (_super) { * Needs to be a directory */ filemanagerAPP.prototype.hidden_upload_enabled = function (_action, _senders) { + if (_senders[0].id == 'nm') + return false; var data = egw.dataGetUIDdata(_senders[0].id); var readonly = (data.data.class || '').split(/ +/).indexOf('noEdit') >= 0; // symlinks dont have mime 'http/unix-directory', but server marks all directories with class 'isDir' diff --git a/filemanager/js/app.ts b/filemanager/js/app.ts index db7902e908..fff990729a 100644 --- a/filemanager/js/app.ts +++ b/filemanager/js/app.ts @@ -1287,6 +1287,7 @@ export class filemanagerAPP extends EgwApp */ hidden_upload_enabled(_action: egwAction, _senders: egwActionObject[]) { + if (_senders[0].id == 'nm') return false; let data = egw.dataGetUIDdata(_senders[0].id); let readonly = (data.data.class || '').split(/ +/).indexOf('noEdit') >= 0;