summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authoranoy <anoymouserver+github@mailbox.org>2020-04-24 16:43:15 +0200
committerBenjamin Brahmer <info@b-brahmer.de>2020-04-24 18:24:08 +0200
commitb5340676dc2af36c36e847c33778a917e049e6c0 (patch)
tree2acbb3d3a34aebd5d48d45666fde8ab2f6af313d /js
parent5f6db2400f474313753ad4e52f42213632abc797 (diff)
fixed active menu item and reload for unread
Signed-off-by: anoy <anoymouserver+github@mailbox.org>
Diffstat (limited to 'js')
-rw-r--r--js/controller/NavigationController.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js
index 1c66422d2..7467acffa 100644
--- a/js/controller/NavigationController.js
+++ b/js/controller/NavigationController.js
@@ -140,6 +140,11 @@ app.controller('NavigationController', function ($route, FEED_TYPE, FeedResource
$route.current.$$route.type === FEED_TYPE.SUBSCRIPTIONS;
};
+ this.isUnreadActive = function () {
+ return $route.current &&
+ $route.current.$$route.type === FEED_TYPE.UNREAD;
+ };
+
this.isStarredActive = function () {
return $route.current &&
$route.current.$$route.type === FEED_TYPE.STARRED;