Fix select all action breaks filemanager's contextmenu

This commit is contained in:
Hadi Nategh 2020-04-07 11:18:13 +02:00
parent cb5b35e2d0
commit 599393ffbe
2 changed files with 3 additions and 0 deletions

View File

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

View File

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