diff options
author | Jimmy Huynh <jimmy.huynh@etu.unistra.fr> | 2021-01-26 15:54:49 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 23:17:31 +0200 |
commit | 0d5443d6eed1e1ba8ff248f72e940734d470f689 (patch) | |
tree | 06e6c41ae63ab724086caf116a94c1b294907e47 /js/controller | |
parent | 1ff8c26ac079c55602217bcbabf344955d6af33a (diff) |
(+) sharedButton
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'js/controller')
-rw-r--r-- | js/controller/NavigationController.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js index 4782ff114..4ff3d2b7d 100644 --- a/js/controller/NavigationController.js +++ b/js/controller/NavigationController.js @@ -114,7 +114,7 @@ app.controller('NavigationController', function ($route, FEED_TYPE, FeedResource }; this.isSharedUnread = function () { - return true; + return true; // TODO:: waiting for Nicolas' request to receive the number of shared articles //return this.getSharedCount() > 0; }; @@ -156,6 +156,7 @@ app.controller('NavigationController', function ($route, FEED_TYPE, FeedResource }; this.isSharedActive = function () { + console.log("hey i'm : " + $route.current.$$route.type); return $route.current && $route.current.$$route.type === FEED_TYPE.SHARED; }; |