diff options
author | Luka Trovic <luka@nextcloud.com> | 2024-08-01 20:20:14 +0200 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2024-08-01 19:24:27 +0000 |
commit | a371101690e7cd1b7e7f5370631a243601bad603 (patch) | |
tree | d11b68ad5499d483c989c16d6a29f0df90e2ee17 /apps | |
parent | 44887141489dab26ae74fb0841e8eb987c736221 (diff) | |
download | nextcloud-server-a371101690e7cd1b7e7f5370631a243601bad603.tar.gz nextcloud-server-a371101690e7cd1b7e7f5370631a243601bad603.zip |
fix(files_sharing): 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 96efa88cca1..807350d7ca7 100644 --- a/apps/files_sharing/src/components/SharingInput.vue +++ b/apps/files_sharing/src/components/SharingInput.vue @@ -420,17 +420,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 { @@ -439,7 +439,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), } |