summaryrefslogtreecommitdiffstats
path: root/js/build/app.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/build/app.js')
-rw-r--r--js/build/app.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/build/app.js b/js/build/app.js
index ae6075da6..7a12eb56c 100644
--- a/js/build/app.js
+++ b/js/build/app.js
@@ -467,6 +467,12 @@ app.controller('ExploreController', ["sites", "$rootScope", "FeedResource", func
$rootScope.$broadcast('addFeed', url);
};
+ this.isCategoryShown = function (data) {
+ return data.filter(function (element) {
+ return FeedResource.get(element.url) === undefined;
+ }).length > 0;
+ };
+
}]);
app.controller('NavigationController',
["$route", "FEED_TYPE", "FeedResource", "FolderResource", "ItemResource", "SettingsResource", "Publisher", "$rootScope", "$location", "$q", function ($route, FEED_TYPE, FeedResource, FolderResource, ItemResource,