summaryrefslogtreecommitdiffstats
path: root/js/controller
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-01-26 18:03:42 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 23:17:31 +0200
commite5ccff97a68877fb03641344477dd212e702360f (patch)
tree9a2e61f7dc62f8a31165ee341de2f67156d2e2cd /js/controller
parent29a68a10e847f6e6852df308790323f3d9673aef (diff)
✨ Shared menu: get and show sharedCount
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'js/controller')
-rw-r--r--js/controller/NavigationController.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js
index 2483fbd00..191618504 100644
--- a/js/controller/NavigationController.js
+++ b/js/controller/NavigationController.js
@@ -113,6 +113,10 @@ app.controller('NavigationController', function ($route, FEED_TYPE, FeedResource
return this.getStarredCount() > 0;
};
+ this.getSharedCount = function () {
+ return ItemResource.getSharedCount();
+ };
+
this.isSharedUnread = function () {
return true; // TODO:: waiting for Nicolas' request to receive the number of shared articles
//return this.getSharedCount() > 0;
@@ -156,7 +160,6 @@ 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;
};