summaryrefslogtreecommitdiffstats
path: root/js/app
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-07 00:23:38 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 23:17:31 +0200
commit04cf2672c3a06dbaa7792403237e3ec9bbaf5455 (patch)
tree910b406b0371bfceb6cdcb729166f90acb49a6a9 /js/app
parent088ebcc63a892f2245c863c647516c0dd8041de7 (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.js9
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);
}