diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-03-07 00:23:38 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 23:17:31 +0200 |
commit | 04cf2672c3a06dbaa7792403237e3ec9bbaf5455 (patch) | |
tree | 910b406b0371bfceb6cdcb729166f90acb49a6a9 /js/app | |
parent | 088ebcc63a892f2245c863c647516c0dd8041de7 (diff) |
🎨 Adapt front-end to match new implementation
- remove share-specific code since new solution uses dummy feeds
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'js/app')
-rw-r--r-- | js/app/Run.js | 9 |
1 files changed, 3 insertions, 6 deletions
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); } |