summaryrefslogtreecommitdiffstats
path: root/js/controller
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-11-19 17:09:23 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-11-19 17:09:23 +0100
commit53443fd1776658991091c9cc308fb86f7d3ac8ef (patch)
tree253e78f010af4e538c45fabf126dff9661ab75ee /js/controller
parent746bdb08b44f0b13a7371962dfb85d28d4704680 (diff)
show hint when no articles to read are availabe
Diffstat (limited to 'js/controller')
-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);