summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvioloncello.ch <22591354+violoncelloCH@users.noreply.github.com>2018-12-21 13:42:44 +0100
committerGitHub <noreply@github.com>2018-12-21 13:42:44 +0100
commit9599660feb7bdba9baa6205b514b6002936cd771 (patch)
tree2d33ce5ba0c347675cc37890b571cf68f61d19de
parentfe8abe2db09e2f40da5bf4207d6247826aeb4809 (diff)
parenta9f40d4f80edf432f9c68f8ab9aaae7fb01c5daa (diff)
Merge pull request #263 from nextcloud/bugfix/noid/search-one-only
Only send one search request at a time to the server
-rw-r--r--src/components/Search.vue3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/Search.vue b/src/components/Search.vue
index 312d8d21..c88f0653 100644
--- a/src/components/Search.vue
+++ b/src/components/Search.vue
@@ -79,6 +79,9 @@ export default {
},
methods: {
search(val) {
+ if (this.loading) {
+ return
+ }
this.loading = true
const re = /@((\w+)(@[\w.]+)?)/g
if (val.match(re)) {