From c652188afb9ae4f99a59bb4c681aae3a777bfb3a Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 16 Dec 2019 09:10:01 +0100 Subject: Make it possible to find transfer user by email MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- apps/files/src/components/TransferOwnershipDialogue.vue | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/files/src') 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, -- cgit v1.2.3