diff --git a/doc/changelog.md b/doc/changelog.md index f2b2c58..6b9e305 100644 --- a/doc/changelog.md +++ b/doc/changelog.md @@ -1,5 +1,9 @@ # upcoming +- (fix) articles not resetting immediately after feed/filter selection (thank to @scratchmex for the report) + +# v2.6 (2025-11-24) + - (new) serve on unix socket (thanks to @rvighne) - (new) more auto-refresh options: 12h & 24h (thanks to @aswerkljh for suggestion) - (fix) smooth scrolling on iOS (thanks to gatheraled) diff --git a/src/assets/javascripts/app.js b/src/assets/javascripts/app.js index bda329b..a3d5f24 100644 --- a/src/assets/javascripts/app.js +++ b/src/assets/javascripts/app.js @@ -361,14 +361,18 @@ var vm = new Vue({ }, 'filterSelected': function(newVal, oldVal) { if (oldVal === undefined) return // do nothing, initial setup - api.settings.update({filter: newVal}).then(this.refreshItems.bind(this, false)) this.itemSelected = null + this.items = [] + this.itemsHasMore = true + api.settings.update({filter: newVal}).then(this.refreshItems.bind(this, false)) this.computeStats() }, 'feedSelected': function(newVal, oldVal) { if (oldVal === undefined) return // do nothing, initial setup - api.settings.update({feed: newVal}).then(this.refreshItems.bind(this, false)) this.itemSelected = null + this.items = [] + this.itemsHasMore = true + api.settings.update({feed: newVal}).then(this.refreshItems.bind(this, false)) if (this.$refs.itemlist) this.$refs.itemlist.scrollTop = 0 }, 'itemSelected': function(newVal, oldVal) {