From 1246c296cb432af47ecb1baacb8faa3c93fc9118 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 20 Nov 2014 17:16:27 +0100 Subject: hide suggestions from explore if they are already in your feed list --- js/build/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'js/build/app.js') diff --git a/js/build/app.js b/js/build/app.js index cef96d193..ae6075da6 100644 --- a/js/build/app.js +++ b/js/build/app.js @@ -454,11 +454,15 @@ app.controller('ContentController', }; }]); -app.controller('ExploreController', ["sites", "$rootScope", function (sites, $rootScope) { +app.controller('ExploreController', ["sites", "$rootScope", "FeedResource", function (sites, $rootScope, FeedResource) { 'use strict'; this.sites = sites; + this.feedExists = function (url) { + return FeedResource.get(url) !== undefined; + }; + this.subscribeTo = function (url) { $rootScope.$broadcast('addFeed', url); }; -- cgit v1.2.3