mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 01:25:56 +00:00
* Feeds.openNextUnread: fix
* model.getNextFeed: make sure return values are consistent, stop wrapping back to starred
This commit is contained in:
@@ -133,9 +133,10 @@ const Feeds = {
|
||||
return Feeds.reloadCurrent('');
|
||||
},
|
||||
openNextUnread: function() {
|
||||
const is_cat = this.activeIsCat();
|
||||
const nuf = this.getNextUnread(this.getActive(), is_cat);
|
||||
if (nuf) this.open({feed: nuf, is_cat: is_cat});
|
||||
const [feed, is_cat] = this.getNextUnread(this.getActive(), this.activeIsCat());
|
||||
|
||||
if (feed !== false)
|
||||
this.open({feed: feed, is_cat: is_cat});
|
||||
},
|
||||
toggle: function() {
|
||||
Element.toggle("feeds-holder");
|
||||
|
||||
Reference in New Issue
Block a user