summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-07-05 12:13:53 +0200
committerVincent Petry <vincent@nextcloud.com>2021-07-27 12:19:25 +0200
commitc1563215e6916b7e44afa464adbbe60ad3af2755 (patch)
treec9ee1bd4cdac3b3f56b6f850cc5dc4b8615f52d6 /apps/files_sharing/src
parentf3f2faa815207b12172cefadcbebe68ab8bffcb3 (diff)
downloadnextcloud-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_sharing/src')
-rw-r--r--apps/files_sharing/src/share.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/src/share.js b/apps/files_sharing/src/share.js
index bb160f8715d..a7660a29f58 100644
--- a/apps/files_sharing/src/share.js
+++ b/apps/files_sharing/src/share.js
@@ -232,6 +232,10 @@ import escapeHTML from 'escape-html'
},
type: OCA.Files.FileActions.TYPE_INLINE,
actionHandler: function(fileName, context) {
+ // details view disabled in some share lists
+ if (!fileList._detailsView) {
+ return
+ }
// do not open sidebar if permission is set and equal to 0
var permissions = parseInt(context.$file.data('share-permissions'), 10)
if (isNaN(permissions) || permissions > 0) {