mirror of https://github.com/nextcloud/bookmarks
fix(Controls): Debounce new search bar
fixes #2110 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
parent
efa540b94c
commit
a5752fe42a
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "bookmarks",
|
||||
"version": "13.0.1",
|
||||
"version": "13.1.3",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "bookmarks",
|
||||
"version": "13.0.1",
|
||||
"version": "13.1.3",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
"dependencies": {
|
||||
"@nextcloud/auth": "^2.1.0",
|
||||
|
@ -6085,9 +6085,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/caniuse-lite": {
|
||||
"version": "1.0.30001517",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001517.tgz",
|
||||
"integrity": "sha512-Vdhm5S11DaFVLlyiKu4hiUTkpZu+y1KA/rZZqVQfOD5YdDT/eQKlkt7NaE0WGOFgX32diqt9MiP9CAiFeRklaA==",
|
||||
"version": "1.0.30001580",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001580.tgz",
|
||||
"integrity": "sha512-mtj5ur2FFPZcCEpXFy8ADXbDACuNFXg6mxVDqp7tqooX6l3zwm+d8EPoeOSIFRDvHs8qu7/SLFOGniULkcH2iA==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "opencollective",
|
||||
|
|
|
@ -162,6 +162,7 @@ export default {
|
|||
props: {},
|
||||
data() {
|
||||
return {
|
||||
searchTimeout: null,
|
||||
url: '',
|
||||
search: this.$route.params.search || '',
|
||||
sortingOptions: {
|
||||
|
@ -284,7 +285,8 @@ export default {
|
|||
},
|
||||
|
||||
onSearch(query) {
|
||||
this.$router.push({ name: this.routes.SEARCH, params: { search: query } })
|
||||
if (this.searchTimeout) clearTimeout(this.searchTimeout)
|
||||
this.searchTimeout = setTimeout(() => this.$router.push({ name: this.routes.SEARCH, params: { search: query } }), 350)
|
||||
},
|
||||
|
||||
copyRssUrl() {
|
||||
|
|
Loading…
Reference in New Issue