diff options
author | Christopher Ng <chrng8@gmail.com> | 2024-02-28 18:59:05 -0800 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2024-03-06 21:22:59 +0100 |
commit | 1260c8552a8ac37df6ba3df7f5165e5a40401119 (patch) | |
tree | 9181e59a28c626392d3b502136800cf7fa66257b /apps/files_sharing/src/components/SharingEntryLink.vue | |
parent | 8fded1d4b78d87490a7fb7555f8d8ca748ae1180 (diff) | |
download | nextcloud-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.vue | 4 |
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() { |