Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-02-03 13:59:10 +0300
committerJulius Härtl <jus@bitgrid.net>2020-02-03 13:59:10 +0300
commite60d9e43125927b167d21f09cb13081aec73082a (patch)
tree0e6e20ede97f13692917cb9259946b79ebab9a7d /apps
parent4a5f18359f05b5784adade59d74f377892252e20 (diff)
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.vue6
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
}