summaryrefslogtreecommitdiffstats
path: root/apps/files/src
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-12-16 09:10:01 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-12-16 09:10:01 +0100
commitc652188afb9ae4f99a59bb4c681aae3a777bfb3a (patch)
tree750a95c90a59dc140dead21c5609181e47f55499 /apps/files/src
parent7557b53086be91fa289f3042d3f3c60fc436196e (diff)
downloadnextcloud-server-c652188afb9ae4f99a59bb4c681aae3a777bfb3a.tar.gz
nextcloud-server-c652188afb9ae4f99a59bb4c681aae3a777bfb3a.zip
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>
Diffstat (limited to 'apps/files/src')
-rw-r--r--apps/files/src/components/TransferOwnershipDialogue.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/src/components/TransferOwnershipDialogue.vue b/apps/files/src/components/TransferOwnershipDialogue.vue
index 8889d908716..3ee09adb233 100644
--- a/apps/files/src/components/TransferOwnershipDialogue.vue
+++ b/apps/files/src/components/TransferOwnershipDialogue.vue
@@ -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,