From c6614aba054d79effd0b89eecf088a3e5b878a71 Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 26 Oct 2021 18:24:42 -0500 Subject: [PATCH] Fix: listen to changing series query string #140 --- client/pages/library/_library/bookshelf/_id.vue | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/client/pages/library/_library/bookshelf/_id.vue b/client/pages/library/_library/bookshelf/_id.vue index bc05386f..6880d63f 100644 --- a/client/pages/library/_library/bookshelf/_id.vue +++ b/client/pages/library/_library/bookshelf/_id.vue @@ -64,6 +64,17 @@ export default { if (this.$route.query.query !== this.searchQuery) { this.newQuery() } + } else if (this.id === 'series') { + if (this.selectedSeries && this.$route.query.series && this.$route.query.series !== this.$encode(this.selectedSeries)) { + // Series changed + this.selectedSeries = this.$decode(this.$route.query.series) + } else if (!this.selectedSeries && this.$route.query.series) { + // Series selected + this.selectedSeries = this.$decode(this.$route.query.series) + } else if (this.selectedSeries && !this.$route.query.series) { + // Series unselected + this.selectedSeries = null + } } } },