Skip to content
Snippets Groups Projects
Commit 640f00f1 authored by Ciarán Ainsworth's avatar Ciarán Ainsworth Committed by Agate
Browse files

Fix issue with album and artist search page

parent 806912c0
No related branches found
No related tags found
No related merge requests found
Fixed an issue with search pages where results would not appear after navigating to another page
\ No newline at end of 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: {
......
......@@ -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>
......@@ -186,6 +186,9 @@ export default {
},
selectPage: function(page) {
this.page = page
},
updatePage() {
this.page = this.defaultPage
}
},
watch: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment