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