aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/js/app.js
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2021-07-02 18:16:34 +0200
committerVincent Petry <vincent@nextcloud.com>2021-07-27 12:19:25 +0200
commitf3f2faa815207b12172cefadcbebe68ab8bffcb3 (patch)
treeb5092333027461811e476c003fec262cea238815 /apps/files_sharing/js/app.js
parent4b5bb4d9cfda9a080861a192524500edfe634ca2 (diff)
downloadnextcloud-server-f3f2faa815207b12172cefadcbebe68ab8bffcb3.tar.gz
nextcloud-server-f3f2faa815207b12172cefadcbebe68ab8bffcb3.zip
Pending remote group share fixes
Only remove reject share for remote group shares Also fix share indicator to appear for remote group shares as well. Fix pending remote share icon to be the one of a share. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/files_sharing/js/app.js')
-rw-r--r--apps/files_sharing/js/app.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/js/app.js b/apps/files_sharing/js/app.js
index 8fb5cb02e56..1c01c880a6d 100644
--- a/apps/files_sharing/js/app.js
+++ b/apps/files_sharing/js/app.js
@@ -316,7 +316,9 @@ OCA.Sharing.App = {
iconClass: 'icon-close',
type: OCA.Files.FileActions.TYPE_INLINE,
shouldRender(context) {
- if (context.$file.attr('data-remote-id')) {
+ // disable rejecting group shares from the pending list because they anyway
+ // land back into that same list
+ if (context.$file.attr('data-remote-id') && parseInt(context.$file.attr('data-share-type'), 10) === OC.Share.SHARE_TYPE_REMOTE_GROUP) {
return false
}
return true