fix(webui): missing data on back navigation with filters

This commit is contained in:
Gauthier Roebroeck 2020-01-30 17:54:58 +08:00
parent be6a7fc717
commit f1952eee4a
2 changed files with 4 additions and 0 deletions

View file

@ -153,6 +153,8 @@ export default mixins(VisibleElements).extend({
// restore filter status from query params
this.filterStatus = this.parseQueryFilterStatus(this.$route.query.status)
this.reloadData(Number(this.$route.params.libraryId), this.series.length)
this.setWatches()
},
beforeRouteUpdate (to, from, next) {

View file

@ -180,6 +180,8 @@ export default mixins(VisibleElements).extend({
// restore sort from query param
this.sortActive = this.parseQuerySortOrDefault(this.$route.query.sort)
this.reloadData(Number(this.$route.params.seriesId), this.books.length)
this.setWatches()
},
async beforeRouteUpdate (to, from, next) {