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 + } } } },