summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorJimmy Huynh <jimmy.huynh@etu.unistra.fr>2021-01-26 14:38:38 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 23:17:31 +0200
commit1ff8c26ac079c55602217bcbabf344955d6af33a (patch)
treeb7c2b3787a3342bd2c267f25564eb483e8837dd7 /js
parent5342837d40a68fa1ecc1bad0a8e8224feca3a96d (diff)
(+) Shared href navigation
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'js')
-rw-r--r--js/controller/NavigationController.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js
index 68a46900e..4782ff114 100644
--- a/js/controller/NavigationController.js
+++ b/js/controller/NavigationController.js
@@ -113,6 +113,11 @@ app.controller('NavigationController', function ($route, FEED_TYPE, FeedResource
return this.getStarredCount() > 0;
};
+ this.isSharedUnread = function () {
+ return true;
+ //return this.getSharedCount() > 0;
+ };
+
this.toggleFolder = function (folderName) {
FolderResource.toggleOpen(folderName);
};
@@ -150,6 +155,11 @@ app.controller('NavigationController', function ($route, FEED_TYPE, FeedResource
$route.current.$$route.type === FEED_TYPE.STARRED;
};
+ this.isSharedActive = function () {
+ return $route.current &&
+ $route.current.$$route.type === FEED_TYPE.SHARED;
+ };
+
this.isExploreActive = function () {
return $route.current &&
$route.current.$$route.type === FEED_TYPE.EXPLORE;