summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
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;