Skip to content

Commit

Permalink
Merge pull request #44918 from nextcloud/backport/44839/stable29
Browse files Browse the repository at this point in the history
fix(sharingDetails): Show correct share target
  • Loading branch information
nfebe authored Apr 25, 2024
2 parents 73d1a10 + 547d584 commit eb58f8e
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 14 deletions.
18 changes: 14 additions & 4 deletions apps/files_sharing/src/views/SharingDetailsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -340,20 +340,30 @@ export default {
switch (this.share.type) {
case this.SHARE_TYPES.SHARE_TYPE_USER:
return t('files_sharing', 'Share with {userName}', { userName: this.share.shareWithDisplayName })
case this.SHARE_TYPES.SHARE_TYPE_EMAIL:
return t('files_sharing', 'Share with email {email}', { email: this.share.shareWith })
case this.SHARE_TYPES.SHARE_TYPE_LINK:
return t('files_sharing', 'Share link')
case this.SHARE_TYPES.SHARE_TYPE_GROUP:
return t('files_sharing', 'Share with group')
case this.SHARE_TYPES.SHARE_TYPE_ROOM:
return t('files_sharing', 'Share in conversation')
case this.SHARE_TYPES.SHARE_TYPE_REMOTE:
return t('files_sharing', 'Share with remote')
case this.SHARE_TYPES.SHARE_TYPE_REMOTE: {
const [user, server] = this.share.shareWith.split('@')
return t('files_sharing', 'Share with {user} on remote server {server}', { user, server })
}
case this.SHARE_TYPES.SHARE_TYPE_REMOTE_GROUP:
return t('files_sharing', 'Share with remote group')
case this.SHARE_TYPES.SHARE_TYPE_GUEST:
return t('files_sharing', 'Share with guest')
default:
return t('files_sharing', 'Share with')
default: {
if (this.share.id) {
// Share already exists
return t('files_sharing', 'Update share')
} else {
return t('files_sharing', 'Create share')
}
}
}
},
/**
Expand Down
3 changes: 0 additions & 3 deletions dist/4997-4997.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/4997-4997.js.map

This file was deleted.

3 changes: 3 additions & 0 deletions dist/6364-6364.js

Large diffs are not rendered by default.

File renamed without changes.
1 change: 1 addition & 0 deletions dist/6364-6364.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/core-common.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-common.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/files_sharing-files_sharing_tab.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/files_sharing-files_sharing_tab.js.map

Large diffs are not rendered by default.

0 comments on commit eb58f8e

Please sign in to comment.