Skip to content

Commit a78be03

Browse files
committed
fix: remove references to non-existent ShareTypes
A refactor was done to remove ShareTypes and an incomplete backport of 00c2b94 left incorrect references to shareTypes. Signed-off-by: nfebe <fenn25.fn@gmail.com>
1 parent 6cb9f94 commit a78be03

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

apps/files_sharing/src/components/SharingEntryLink.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ export default {
575575
* @return {Array}
576576
*/
577577
externalLinkActions() {
578-
const filterValidAction = (action) => (action.shareType.includes(ShareTypes.SHARE_TYPE_LINK) || action.shareType.includes(ShareTypes.SHARE_TYPE_EMAIL)) && !action.advanced
578+
const filterValidAction = (action) => (action.shareType.includes(ShareType.Link) || action.shareType.includes(ShareType.Email)) && !action.advanced
579579
// filter only the registered actions for said link
580580
return this.ExternalShareActions.actions
581581
.filter(filterValidAction)
@@ -621,7 +621,7 @@ export default {
621621
}
622622
623623
const shareDefaults = {
624-
share_type: ShareTypes.SHARE_TYPE_LINK,
624+
share_type: ShareType.Link,
625625
}
626626
if (this.config.isDefaultExpireDateEnforced) {
627627
// default is empty string if not set
@@ -709,7 +709,7 @@ export default {
709709
const path = (this.fileInfo.path + '/' + this.fileInfo.name).replace('//', '/')
710710
const options = {
711711
path,
712-
shareType: ShareTypes.SHARE_TYPE_LINK,
712+
shareType: ShareType.Link,
713713
password: share.password,
714714
expireDate: share.expireDate,
715715
attributes: JSON.stringify(this.fileInfo.shareAttributes),

apps/files_sharing/src/views/SharingDetailsTab.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,9 @@ export default {
341341
switch (this.share.type) {
342342
case ShareType.User:
343343
return t('files_sharing', 'Share with {userName}', { userName: this.share.shareWithDisplayName })
344-
case this.SHARE_TYPES.SHARE_TYPE_EMAIL:
344+
case ShareType.Email:
345345
return t('files_sharing', 'Share with email {email}', { email: this.share.shareWith })
346-
case this.SHARE_TYPES.SHARE_TYPE_LINK:
346+
case ShareType.Link:
347347
return t('files_sharing', 'Share link')
348348
case ShareType.Group:
349349
return t('files_sharing', 'Share with group')

0 commit comments

Comments
 (0)