From d4a5286268406f0e502f2d0d895cf38c471176af Mon Sep 17 00:00:00 2001 From: chme Date: Sun, 18 Oct 2020 07:39:29 +0200 Subject: [PATCH] [web-src] Keep the search text when switching to/from Spotify search --- web-src/src/pages/PageSearch.vue | 1 + web-src/src/pages/SpotifyPageSearch.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/web-src/src/pages/PageSearch.vue b/web-src/src/pages/PageSearch.vue index a7d7bf0a..dd52e80e 100644 --- a/web-src/src/pages/PageSearch.vue +++ b/web-src/src/pages/PageSearch.vue @@ -250,6 +250,7 @@ export default { return } + this.search_query = route.query.query this.searchMusic(route.query) this.searchAudiobooks(route.query) this.searchPodcasts(route.query) diff --git a/web-src/src/pages/SpotifyPageSearch.vue b/web-src/src/pages/SpotifyPageSearch.vue index 714c60e5..5a373bd1 100644 --- a/web-src/src/pages/SpotifyPageSearch.vue +++ b/web-src/src/pages/SpotifyPageSearch.vue @@ -265,6 +265,7 @@ export default { return } + this.search_query = this.query.query this.search_param.limit = this.query.limit ? this.query.limit : 50 this.search_param.offset = this.query.offset ? this.query.offset : 0