summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-02-03 11:59:10 +0100
committerJulius Härtl <jus@bitgrid.net>2020-02-04 09:40:15 +0100
commita1248780bcf3ba60933606ac399364290b9f4939 (patch)
tree2f9d7b5e824b9fe775c14c2d581e5a5cf7e78299 /apps/files
parent0bad752282c386c8a661ee243fd03bcd795812b2 (diff)
downloadnextcloud-server-a1248780bcf3ba60933606ac399364290b9f4939.tar.gz
nextcloud-server-a1248780bcf3ba60933606ac399364290b9f4939.zip
Make sure that minSearchStringLength is taken into account
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files')
-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 1e683ecce29..0229be86cdd 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
}