mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Make it possible to find transfer user by email
The Vue Multiselect uses one prop for the local search. Although the API already returned matching users for a given email, the users were filtered out as their displayname doesn't contain the search string – the email address. Disabling the local seach and only using the most recently fetched matches fixes this problem. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
7557b53086
commit
c652188afb
3 changed files with 4 additions and 2 deletions
2
apps/files/js/dist/personal-settings.js
vendored
2
apps/files/js/dist/personal-settings.js
vendored
File diff suppressed because one or more lines are too long
2
apps/files/js/dist/personal-settings.js.map
vendored
2
apps/files/js/dist/personal-settings.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -53,6 +53,7 @@
|
|||
:loading="loadingUsers"
|
||||
track-by="user"
|
||||
label="displayName"
|
||||
:internal-search="false"
|
||||
:clear-on-select="false"
|
||||
:user-select="true"
|
||||
@search-change="findUserDebounced" />
|
||||
|
|
@ -162,6 +163,7 @@ export default {
|
|||
logger.error('Error fetching suggestions', { response })
|
||||
}
|
||||
|
||||
this.userSuggestions = {}
|
||||
response.data.ocs.data.users.forEach(user => {
|
||||
Vue.set(this.userSuggestions, user.value.shareWith, {
|
||||
uid: user.value.shareWith,
|
||||
|
|
|
|||
Loading…
Reference in a new issue