diff options
Diffstat (limited to 'js/controller')
-rw-r--r-- | js/controller/ExploreController.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/controller/ExploreController.js b/js/controller/ExploreController.js index d7f869eaf..7fca456e5 100644 --- a/js/controller/ExploreController.js +++ b/js/controller/ExploreController.js @@ -20,4 +20,10 @@ app.controller('ExploreController', function (sites, $rootScope, FeedResource) { $rootScope.$broadcast('addFeed', url); }; + this.isCategoryShown = function (data) { + return data.filter(function (element) { + return FeedResource.get(element.url) === undefined; + }).length > 0; + }; + });
\ No newline at end of file |