diff options
author | nfebe <fenn25.fn@gmail.com> | 2025-01-02 23:17:01 +0100 |
---|---|---|
committer | nfebe <fenn25.fn@gmail.com> | 2025-01-06 10:50:55 +0100 |
commit | c4ddb16a3790651fb2b9e1b8f150a87c5e3be734 (patch) | |
tree | aac1cbc87d89ba880bca4c31f80e9bc9dc61df5b | |
parent | 64bbe80f3f84a377d4e47663887ff3b9436fa55d (diff) | |
download | nextcloud-server-c4ddb16a3790651fb2b9e1b8f150a87c5e3be734.tar.gz nextcloud-server-c4ddb16a3790651fb2b9e1b8f150a87c5e3be734.zip |
fix: remove references to non-existent ShareTypes
A refactor was done to remove ShareTypes and an incomplete backport of
00c2b94391819eda77ddc7ab347972383c6319c0 left incorrect references to shareTypes.
Signed-off-by: nfebe <fenn25.fn@gmail.com>
-rw-r--r-- | apps/files_sharing/src/components/SharingEntryLink.vue | 6 | ||||
-rw-r--r-- | apps/files_sharing/src/views/SharingDetailsTab.vue | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index ca5609ab83e..3f68a3c43bc 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -568,7 +568,7 @@ export default { * @return {Array} */ externalLinkActions() { - const filterValidAction = (action) => (action.shareType.includes(ShareTypes.SHARE_TYPE_LINK) || action.shareType.includes(ShareTypes.SHARE_TYPE_EMAIL)) && !action.advanced + const filterValidAction = (action) => (action.shareType.includes(ShareType.Link) || action.shareType.includes(ShareType.Email)) && !action.advanced // filter only the registered actions for said link return this.ExternalShareActions.actions .filter(filterValidAction) @@ -620,7 +620,7 @@ export default { } const shareDefaults = { - share_type: ShareTypes.SHARE_TYPE_LINK, + share_type: ShareType.Link, } if (this.config.isDefaultExpireDateEnforced) { // default is empty string if not set @@ -708,7 +708,7 @@ export default { const path = (this.fileInfo.path + '/' + this.fileInfo.name).replace('//', '/') const options = { path, - shareType: ShareTypes.SHARE_TYPE_LINK, + shareType: ShareType.Link, password: share.password, expireDate: share.expireDate, attributes: JSON.stringify(this.fileInfo.shareAttributes), diff --git a/apps/files_sharing/src/views/SharingDetailsTab.vue b/apps/files_sharing/src/views/SharingDetailsTab.vue index 802098c1b04..215f91a6dc6 100644 --- a/apps/files_sharing/src/views/SharingDetailsTab.vue +++ b/apps/files_sharing/src/views/SharingDetailsTab.vue @@ -347,9 +347,9 @@ export default { switch (this.share.type) { case ShareType.User: return t('files_sharing', 'Share with {userName}', { userName: this.share.shareWithDisplayName }) - case this.SHARE_TYPES.SHARE_TYPE_EMAIL: + case ShareType.Email: return t('files_sharing', 'Share with email {email}', { email: this.share.shareWith }) - case this.SHARE_TYPES.SHARE_TYPE_LINK: + case ShareType.Link: return t('files_sharing', 'Share link') case ShareType.Group: return t('files_sharing', 'Share with group') |