Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-10-07 13:31:30 +0300
committerJulius Härtl <jus@bitgrid.net>2020-12-14 13:14:59 +0300
commit131fcac91ed0468d6564eb268c85b6665e06f330 (patch)
tree0b18596235799bb50c688307cf0e26b7d0a138f5 /apps/files_sharing/src/components
parenta86746ea08be193ae69c4dcbf8001c9032c1a2c1 (diff)
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')
-rw-r--r--apps/files_sharing/src/components/SharingInput.vue3
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),
}
},