From 04cf2672c3a06dbaa7792403237e3ec9bbaf5455 Mon Sep 17 00:00:00 2001 From: Marco Nassabain Date: Sun, 7 Mar 2021 00:23:38 +0100 Subject: =?UTF-8?q?=F0=9F=8E=A8=20Adapt=20front-end=20to=20match=20new=20i?= =?UTF-8?q?mplementation=20-=20remove=20share-specific=20code=20since=20ne?= =?UTF-8?q?w=20solution=20uses=20dummy=20feeds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marco Nassabain --- js/app/Run.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'js/app/Run.js') diff --git a/js/app/Run.js b/js/app/Run.js index 4eab8ca4d..1a1572864 100644 --- a/js/app/Run.js +++ b/js/app/Run.js @@ -17,7 +17,7 @@ app.run(function ($rootScope, $location, $http, $q, $interval, $route, Loading, // listen to keys in returned queries to automatically distribute the // incoming values to models Publisher.subscribe(ItemResource).toChannels(['items', 'newestItemId', - 'starred', 'unread', 'shared']); + 'starred', 'unread']); Publisher.subscribe(FolderResource).toChannels(['folders']); Publisher.subscribe(FeedResource).toChannels(['feeds']); Publisher.subscribe(SettingsResource).toChannels(['settings']); @@ -45,13 +45,10 @@ app.run(function ($rootScope, $location, $http, $q, $interval, $route, Loading, url = '/items/starred'; break; - case FEED_TYPE.SHARED: - url = '/items/shared'; - break; - case FEED_TYPE.EXPLORE: url = '/explore'; break; + case FEED_TYPE.UNREAD: url = '/items/unread'; break; @@ -61,7 +58,7 @@ app.run(function ($rootScope, $location, $http, $q, $interval, $route, Loading, } // only redirect if url is empty or faulty - if (!/^\/items(\/(starred|unread|shared|explore|feeds\/\d+|folders\/\d+))?\/?$/ + if (!/^\/items(\/(starred|unread|explore|feeds\/\d+|folders\/\d+))?\/?$/ .test(path)) { $location.path(url); } -- cgit v1.2.3