Fix #902: search usability issue when browsing artists, albums, radios and playlists

This commit is contained in:
Eliot Berriot 2019-09-15 20:17:22 +02:00
commit 3311a11506
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
5 changed files with 29 additions and 16 deletions

View file

@ -154,14 +154,17 @@ export default {
},
methods: {
updateQueryString: _.debounce(function() {
this.$router.replace({
query: {
history.pushState(
{},
null,
this.$route.path + '?' + new URLSearchParams(
{
query: this.query,
page: this.page,
paginateBy: this.paginateBy,
ordering: this.getOrderingAsString()
}
})
}).toString()
)
}, 500),
fetchData: _.debounce(function() {
var self = this