Handle pending read with unread count
This commit is contained in:
parent
3f20bd1cd3
commit
33d91402fd
@ -152,13 +152,13 @@
|
||||
}
|
||||
},
|
||||
unread() {
|
||||
return this.items.filter(item => !item.Read).length;
|
||||
return this.items.filter(item => !item.Read && !item.PendingRead).length;
|
||||
},
|
||||
saved() {
|
||||
return this.savedItems.length;
|
||||
},
|
||||
unreadCounts() {
|
||||
return this.items.filter(item => !item.Read).reduce((acc, item) => {
|
||||
return this.items.filter(item => !item.Read && !item.PendingRead).reduce((acc, item) => {
|
||||
if (!acc[item.FeedID]) acc[item.FeedID] = 0;
|
||||
acc[item.FeedID]++;
|
||||
return acc;
|
||||
|
Loading…
Reference in New Issue
Block a user