Merge branch 'fix-search-page-bug' into 'develop'

Fix issue with album and artist search page

See merge request funkwhale/funkwhale!1178
This commit is contained in:
Agate 2020-07-27 11:03:48 +02:00
commit b9b1ec04ae
3 changed files with 9 additions and 2 deletions

View File

@ -0,0 +1 @@
Fixed an issue with search pages where results would not appear after navigating to another page

View File

@ -4,7 +4,7 @@
<h2 class="ui header">
<translate translate-context="Content/Album/Title">Browsing albums</translate>
</h2>
<form :class="['ui', {'loading': isLoading}, 'form']" @submit.prevent="updateQueryString();fetchData()">
<form :class="['ui', {'loading': isLoading}, 'form']" @submit.prevent="updatePage();updateQueryString();fetchData()">
<div class="fields">
<div class="field">
<label>
@ -195,6 +195,9 @@ export default {
},
selectPage: function(page) {
this.page = page
},
updatePage() {
this.page = this.defaultPage
}
},
watch: {

View File

@ -4,7 +4,7 @@
<h2 class="ui header">
<translate translate-context="Content/Artist/Title">Browsing artists</translate>
</h2>
<form :class="['ui', {'loading': isLoading}, 'form']" @submit.prevent="updateQueryString();fetchData()">
<form :class="['ui', {'loading': isLoading}, 'form']" @submit.prevent="updatePage();updateQueryString();fetchData()">
<div class="fields">
<div class="field">
<label>
@ -195,6 +195,9 @@ export default {
},
selectPage: function(page) {
this.page = page
},
updatePage() {
this.page = this.defaultPage
}
},
watch: {