Skip to content
Snippets Groups Projects
Commit b9b1ec04 authored by Agate's avatar Agate :speech_balloon:
Browse files

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

Fix issue with album and artist search page

See merge request !1178
parents 36820ce7 640f00f1
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 @@ ...@@ -4,7 +4,7 @@
<h2 class="ui header"> <h2 class="ui header">
<translate translate-context="Content/Album/Title">Browsing albums</translate> <translate translate-context="Content/Album/Title">Browsing albums</translate>
</h2> </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="fields">
<div class="field"> <div class="field">
<label> <label>
...@@ -195,6 +195,9 @@ export default { ...@@ -195,6 +195,9 @@ export default {
}, },
selectPage: function(page) { selectPage: function(page) {
this.page = page this.page = page
},
updatePage() {
this.page = this.defaultPage
} }
}, },
watch: { watch: {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<h2 class="ui header"> <h2 class="ui header">
<translate translate-context="Content/Artist/Title">Browsing artists</translate> <translate translate-context="Content/Artist/Title">Browsing artists</translate>
</h2> </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="fields">
<div class="field"> <div class="field">
<label> <label>
...@@ -195,6 +195,9 @@ export default { ...@@ -195,6 +195,9 @@ export default {
}, },
selectPage: function(page) { selectPage: function(page) {
this.page = page this.page = page
},
updatePage() {
this.page = this.defaultPage
} }
}, },
watch: { watch: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment