summaryrefslogtreecommitdiffstats
path: root/js/controller/NavigationController.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controller/NavigationController.js')
-rw-r--r--js/controller/NavigationController.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js
index 25fa6ddd1..a848a4b39 100644
--- a/js/controller/NavigationController.js
+++ b/js/controller/NavigationController.js
@@ -98,15 +98,17 @@ function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource,
};
this.isFolderActive = (folderId) => {
+ let currentId = parseInt($route.current.params.id, 10);
return $route.current &&
$route.current.$$route.type === FEED_TYPE.FOLDER &&
- $route.current.params.id === folderId + '';
+ currentId === folderId;
};
this.isFeedActive = (feedId) => {
+ let currentId = parseInt($route.current.params.id, 10);
return $route.current &&
$route.current.$$route.type === FEED_TYPE.FEED &&
- $route.current.params.id === feedId + '';
+ currentId === feedId;
};
// TBD