diff options
author | Luka Trovic <luka@nextcloud.com> | 2024-08-06 22:49:40 +0200 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2024-08-06 21:04:58 +0000 |
commit | b2357ba4f2e9907b239699572afcd90af875b56b (patch) | |
tree | a021f72173b6b8fe91e8bf451050ac14974c79f6 /apps | |
parent | 1389863f42ad90be947dd15465744661b25226b4 (diff) | |
download | nextcloud-server-b2357ba4f2e9907b239699572afcd90af875b56b.tar.gz nextcloud-server-b2357ba4f2e9907b239699572afcd90af875b56b.zip |
fix: add missing subtitle on search for share recipients
Signed-off-by: Luka Trovic <luka@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/src/components/SharingInput.vue | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue index 7dbce6f8493..519c6bf884c 100644 --- a/apps/files_sharing/src/components/SharingInput.vue +++ b/apps/files_sharing/src/components/SharingInput.vue @@ -438,17 +438,17 @@ export default { * @return {object} */ formatForMultiselect(result) { - let subtitle + let subname if (result.value.shareType === this.SHARE_TYPES.SHARE_TYPE_USER && this.config.shouldAlwaysShowUnique) { - subtitle = result.shareWithDisplayNameUnique ?? '' + subname = result.shareWithDisplayNameUnique ?? '' } else if ((result.value.shareType === this.SHARE_TYPES.SHARE_TYPE_REMOTE || result.value.shareType === this.SHARE_TYPES.SHARE_TYPE_REMOTE_GROUP ) && result.value.server) { - subtitle = t('files_sharing', 'on {server}', { server: result.value.server }) + subname = t('files_sharing', 'on {server}', { server: result.value.server }) } else if (result.value.shareType === this.SHARE_TYPES.SHARE_TYPE_EMAIL) { - subtitle = result.value.shareWith + subname = result.value.shareWith } else { - subtitle = result.shareWithDescription ?? '' + subname = result.shareWithDescription ?? '' } return { @@ -457,7 +457,7 @@ export default { user: result.uuid || result.value.shareWith, isNoUser: result.value.shareType !== this.SHARE_TYPES.SHARE_TYPE_USER, displayName: result.name || result.label, - subtitle, + subname, shareWithDisplayNameUnique: result.shareWithDisplayNameUnique || '', ...this.shareTypeToIcon(result.value.shareType), } |