From 33d91402fdecaa37622d9214d9fa7ccd1947458f Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Tue, 10 Nov 2020 15:58:02 +0000 Subject: [PATCH] Handle pending read with unread count --- views/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/index.html b/views/index.html index e0fc4b5..e936732 100644 --- a/views/index.html +++ b/views/index.html @@ -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;