diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-10-07 12:31:30 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-12-14 11:14:59 +0100 |
commit | 131fcac91ed0468d6564eb268c85b6665e06f330 (patch) | |
tree | 0b18596235799bb50c688307cf0e26b7d0a138f5 /apps/files_sharing/src/components/SharingInput.vue | |
parent | a86746ea08be193ae69c4dcbf8001c9032c1a2c1 (diff) | |
download | nextcloud-server-131fcac91ed0468d6564eb268c85b6665e06f330.tar.gz nextcloud-server-131fcac91ed0468d6564eb268c85b6665e06f330.zip |
Show unique displayname context in the sharing input
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/src/components/SharingInput.vue')
-rw-r--r-- | apps/files_sharing/src/components/SharingInput.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue index 6d7eb8220a1..4222a5589e6 100644 --- a/apps/files_sharing/src/components/SharingInput.vue +++ b/apps/files_sharing/src/components/SharingInput.vue @@ -258,7 +258,7 @@ export default { this.suggestions = allSuggestions.map(item => { // Make sure that items with duplicate displayName get the shareWith applied as a description if (nameCounts[item.displayName] > 1 && !item.desc) { - return { ...item, desc: item.shareWith } + return { ...item, desc: item.shareWithDisplayNameUnique } } return item }) @@ -418,6 +418,7 @@ export default { isNoUser: result.value.shareType !== this.SHARE_TYPES.SHARE_TYPE_USER, displayName: result.name || result.label, desc, + shareWithDisplayNameUnique: result.shareWithDisplayNameUnique || '', icon: this.shareTypeToIcon(result.value.shareType), } }, |