aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/components/SharingEntryLink.vue
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2024-02-28 18:59:05 -0800
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2024-03-06 21:22:59 +0100
commit1260c8552a8ac37df6ba3df7f5165e5a40401119 (patch)
tree9181e59a28c626392d3b502136800cf7fa66257b /apps/files_sharing/src/components/SharingEntryLink.vue
parent8fded1d4b78d87490a7fb7555f8d8ca748ae1180 (diff)
downloadnextcloud-server-1260c8552a8ac37df6ba3df7f5165e5a40401119.tar.gz
nextcloud-server-1260c8552a8ac37df6ba3df7f5165e5a40401119.zip
feat: Allow registration of advanced external share actions
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'apps/files_sharing/src/components/SharingEntryLink.vue')
-rw-r--r--apps/files_sharing/src/components/SharingEntryLink.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue
index bf9e0203f9e..041a9b16ad6 100644
--- a/apps/files_sharing/src/components/SharingEntryLink.vue
+++ b/apps/files_sharing/src/components/SharingEntryLink.vue
@@ -525,10 +525,10 @@ export default {
* @return {Array}
*/
externalLinkActions() {
+ const filterValidAction = (action) => (action.shareType.includes(ShareTypes.SHARE_TYPE_LINK) || action.shareType.includes(ShareTypes.SHARE_TYPE_EMAIL)) && !action.advanced
// filter only the registered actions for said link
return this.ExternalShareActions.actions
- .filter(action => action.shareType.includes(ShareTypes.SHARE_TYPE_LINK)
- || action.shareType.includes(ShareTypes.SHARE_TYPE_EMAIL))
+ .filter(filterValidAction)
},
isPasswordPolicyEnabled() {