summaryrefslogtreecommitdiffstats
path: root/js/controller/ContentController.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/controller/ContentController.js')
-rw-r--r--js/controller/ContentController.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js
index 1f4971121..0b22bfc2c 100644
--- a/js/controller/ContentController.js
+++ b/js/controller/ContentController.js
@@ -9,13 +9,9 @@
*/
app.controller('ContentController',
function (Publisher, FeedResource, ItemResource, SettingsResource, data,
- $route, $routeParams, FEED_TYPE, $location, FolderResource) {
+ $route, $routeParams, FEED_TYPE) {
'use strict';
- if (FeedResource.size() === 0 && FolderResource.size() === 0) {
- $location.path('/explore');
- }
-
// dont cache items across multiple route changes
ItemResource.clear();
@@ -40,6 +36,10 @@ function (Publisher, FeedResource, ItemResource, SettingsResource, data,
}
};
+ this.isShowAll = function () {
+ return SettingsResource.get('showAll');
+ };
+
this.markRead = function (itemId) {
var item = ItemResource.get(itemId);