From b5340676dc2af36c36e847c33778a917e049e6c0 Mon Sep 17 00:00:00 2001 From: anoy Date: Fri, 24 Apr 2020 16:43:15 +0200 Subject: fixed active menu item and reload for unread Signed-off-by: anoy --- js/controller/NavigationController.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'js') 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; -- cgit v1.2.3