Fixed some debouncing issues

This commit is contained in:
Eliot Berriot 2017-12-17 20:24:48 +01:00
parent e1817cc5c2
commit 0c5f151fc1
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
3 changed files with 5 additions and 4 deletions

View file

@ -103,7 +103,7 @@ export default {
$('.ui.dropdown').dropdown()
},
methods: {
updateQueryString: function () {
updateQueryString: _.debounce(function () {
this.$router.replace({
query: {
query: this.query,
@ -112,7 +112,7 @@ export default {
ordering: this.getOrderingAsString()
}
})
},
}, 500),
fetchData: _.debounce(function () {
var self = this
this.isLoading = true