Skip to content

Commit 3d69911

Browse files
committed
reset article list right after filter/feed is selected
1 parent 1052735 commit 3d69911

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

doc/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# upcoming
22

3+
- (fix) articles not resetting immediately after feed/filter selection (thank to @scratchmex for the report)
4+
5+
# v2.6 (2025-11-24)
6+
37
- (new) serve on unix socket (thanks to @rvighne)
48
- (new) more auto-refresh options: 12h & 24h (thanks to @aswerkljh for suggestion)
59
- (fix) smooth scrolling on iOS (thanks to gatheraled)

src/assets/javascripts/app.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,14 +361,18 @@ var vm = new Vue({
361361
},
362362
'filterSelected': function(newVal, oldVal) {
363363
if (oldVal === undefined) return // do nothing, initial setup
364-
api.settings.update({filter: newVal}).then(this.refreshItems.bind(this, false))
365364
this.itemSelected = null
365+
this.items = []
366+
this.itemsHasMore = true
367+
api.settings.update({filter: newVal}).then(this.refreshItems.bind(this, false))
366368
this.computeStats()
367369
},
368370
'feedSelected': function(newVal, oldVal) {
369371
if (oldVal === undefined) return // do nothing, initial setup
370-
api.settings.update({feed: newVal}).then(this.refreshItems.bind(this, false))
371372
this.itemSelected = null
373+
this.items = []
374+
this.itemsHasMore = true
375+
api.settings.update({feed: newVal}).then(this.refreshItems.bind(this, false))
372376
if (this.$refs.itemlist) this.$refs.itemlist.scrollTop = 0
373377
},
374378
'itemSelected': function(newVal, oldVal) {

0 commit comments

Comments
 (0)