mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-02 20:19:27 +01:00
Fix select all action breaks filemanager's contextmenu
This commit is contained in:
parent
cb5b35e2d0
commit
599393ffbe
@ -1067,6 +1067,8 @@ var filemanagerAPP = /** @class */ (function (_super) {
|
|||||||
* Needs to be a directory
|
* Needs to be a directory
|
||||||
*/
|
*/
|
||||||
filemanagerAPP.prototype.hidden_upload_enabled = function (_action, _senders) {
|
filemanagerAPP.prototype.hidden_upload_enabled = function (_action, _senders) {
|
||||||
|
if (_senders[0].id == 'nm')
|
||||||
|
return false;
|
||||||
var data = egw.dataGetUIDdata(_senders[0].id);
|
var data = egw.dataGetUIDdata(_senders[0].id);
|
||||||
var readonly = (data.data.class || '').split(/ +/).indexOf('noEdit') >= 0;
|
var readonly = (data.data.class || '').split(/ +/).indexOf('noEdit') >= 0;
|
||||||
// symlinks dont have mime 'http/unix-directory', but server marks all directories with class 'isDir'
|
// symlinks dont have mime 'http/unix-directory', but server marks all directories with class 'isDir'
|
||||||
|
@ -1287,6 +1287,7 @@ export class filemanagerAPP extends EgwApp
|
|||||||
*/
|
*/
|
||||||
hidden_upload_enabled(_action: egwAction, _senders: egwActionObject[])
|
hidden_upload_enabled(_action: egwAction, _senders: egwActionObject[])
|
||||||
{
|
{
|
||||||
|
if (_senders[0].id == 'nm') return false;
|
||||||
let data = egw.dataGetUIDdata(_senders[0].id);
|
let data = egw.dataGetUIDdata(_senders[0].id);
|
||||||
let readonly = (data.data.class || '').split(/ +/).indexOf('noEdit') >= 0;
|
let readonly = (data.data.class || '').split(/ +/).indexOf('noEdit') >= 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user