diff --git a/changes/changelog.d/search-page.bugfix b/changes/changelog.d/search-page.bugfix new file mode 100644 index 0000000000000000000000000000000000000000..eb9bc69ddca3efb7a1ec29a30e7d9c52cc099aab --- /dev/null +++ b/changes/changelog.d/search-page.bugfix @@ -0,0 +1 @@ +Fixed an issue with search pages where results would not appear after navigating to another page \ No newline at end of file diff --git a/front/src/components/library/Albums.vue b/front/src/components/library/Albums.vue index 647e37b475315a49c8dbaccea20cf22777807620..4f9bcd8b2b25a1418f648c5d42345374ee6e258e 100644 --- a/front/src/components/library/Albums.vue +++ b/front/src/components/library/Albums.vue @@ -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: { diff --git a/front/src/components/library/Artists.vue b/front/src/components/library/Artists.vue index e72228589c3a60b9cf3a6cd459f03d55efd2d765..d01d0a9ddfb824650aa5b46b53137dbcb1cc2b30 100644 --- a/front/src/components/library/Artists.vue +++ b/front/src/components/library/Artists.vue @@ -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: {