diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-07-05 12:13:53 +0200 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-07-27 12:19:25 +0200 |
commit | c1563215e6916b7e44afa464adbbe60ad3af2755 (patch) | |
tree | c9ee1bd4cdac3b3f56b6f850cc5dc4b8615f52d6 /apps/files/js | |
parent | f3f2faa815207b12172cefadcbebe68ab8bffcb3 (diff) | |
download | nextcloud-server-c1563215e6916b7e44afa464adbbe60ad3af2755.tar.gz nextcloud-server-c1563215e6916b7e44afa464adbbe60ad3af2755.zip |
Disable default actions in pending file list
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/gotoplugin.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/js/gotoplugin.js b/apps/files/js/gotoplugin.js index 4793420ed2d..d686c7850cf 100644 --- a/apps/files/js/gotoplugin.js +++ b/apps/files/js/gotoplugin.js @@ -29,6 +29,11 @@ if (this.disallowedLists.indexOf(fileList.id) !== -1) { return; } + // lists where the "Open" default action is disabled should + // also have the goto action disabled + if (fileList._defaultFileActionsDisabled) { + return + } var fileActions = fileList.fileActions; fileActions.registerAction({ |