fix(sharing): list accounts with matches in email

* Show users with matches in the email address.
* List email addresses in sharing dialog.

`NcSelect` filters the options based on matches in `label` and `subname`.
By using the email address as a subname we ensure
options with a matching email address are shown.

Signed-off-by: Max <max@nextcloud.com>
This commit is contained in:
Max
2024-11-04 08:31:37 +01:00
committed by backportbot[bot]
parent 8d1c54f98a
commit ac2362e71d
3 changed files with 46 additions and 4 deletions

View File

@@ -137,9 +137,13 @@ export default {
},
formatedSharees() {
return this.unallocatedSharees.map(item => {
const subname = item.label === item.shareWithDisplayNameUnique
? ''
: item.shareWithDisplayNameUnique
const sharee = {
user: item.value.shareWith,
displayName: item.label,
subname,
icon: 'icon-user',
multiselectKey: item.shareType + ':' + item.primaryKey,
}