mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 23:34:22 -04:00
Merge pull request #44918 from nextcloud/backport/44839/stable29
fix(sharingDetails): Show correct share target
This commit is contained in:
commit
eb58f8e298
10 changed files with 24 additions and 14 deletions
|
|
@ -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')
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
|
|
|||
3
dist/4997-4997.js
vendored
3
dist/4997-4997.js
vendored
File diff suppressed because one or more lines are too long
1
dist/4997-4997.js.map
vendored
1
dist/4997-4997.js.map
vendored
File diff suppressed because one or more lines are too long
3
dist/6364-6364.js
vendored
Normal file
3
dist/6364-6364.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/6364-6364.js.map
vendored
Normal file
1
dist/6364-6364.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
4
dist/core-common.js
vendored
4
dist/core-common.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-common.js.map
vendored
2
dist/core-common.js.map
vendored
File diff suppressed because one or more lines are too long
4
dist/files_sharing-files_sharing_tab.js
vendored
4
dist/files_sharing-files_sharing_tab.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-files_sharing_tab.js.map
vendored
2
dist/files_sharing-files_sharing_tab.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue