diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-02-03 11:59:10 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-02-03 11:59:10 +0100 |
commit | e60d9e43125927b167d21f09cb13081aec73082a (patch) | |
tree | 0e6e20ede97f13692917cb9259946b79ebab9a7d /apps | |
parent | 4a5f18359f05b5784adade59d74f377892252e20 (diff) | |
download | nextcloud-server-e60d9e43125927b167d21f09cb13081aec73082a.tar.gz nextcloud-server-e60d9e43125927b167d21f09cb13081aec73082a.zip |
Make sure that minSearchStringLength is taken into account
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/src/components/TransferOwnershipDialogue.vue | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/src/components/TransferOwnershipDialogue.vue b/apps/files/src/components/TransferOwnershipDialogue.vue index d6f55879c63..e88698c9a4f 100644 --- a/apps/files/src/components/TransferOwnershipDialogue.vue +++ b/apps/files/src/components/TransferOwnershipDialogue.vue @@ -96,6 +96,9 @@ export default { loadingUsers: false, selectedUser: null, userSuggestions: {}, + config: { + minSearchStringLength: parseInt(OC.config['sharing.minSearchStringLength'], 10) || 0, + }, } }, computed: { @@ -128,6 +131,7 @@ export default { }, created() { this.findUserDebounced = debounce(this.findUser, 300) + this.findUser('') }, methods: { start() { @@ -152,7 +156,7 @@ export default { async findUser(query) { this.query = query.trim() - if (query.length < 3) { + if (query.length < this.config.minSearchStringLength) { return } |