Handle pending read with unread count
This commit is contained in:
1 parent
3f20bd1cd3
commit
33d91402fd
1 file changed
+2
-2
+2
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user