summaryrefslogtreecommitdiffstats
path: root/js/controller/NavigationController.js
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-23 20:19:06 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-23 20:19:06 +0200
commit0b22611a929fc317c6ad073d2ddf5f198ee836f3 (patch)
treeca3593e76af10dc6a81ed0412c6d0e6434f73331 /js/controller/NavigationController.js
parent94e24c1e1a53db60e6924b39ad308b6b2d2e8c2b (diff)
more boilerplate
Diffstat (limited to 'js/controller/NavigationController.js')
-rw-r--r--js/controller/NavigationController.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js
index 299d433da..08443191b 100644
--- a/js/controller/NavigationController.js
+++ b/js/controller/NavigationController.js
@@ -8,7 +8,7 @@
* @copyright Bernhard Posselt 2014
*/
app.controller('NavigationController',
-function (FeedResource, FolderResource, ItemResource) {
+function (FeedResource, FolderResource, ItemResource, SettingsResource) {
'use strict';
this.getFeeds = () => {
@@ -37,6 +37,10 @@ function (FeedResource, FolderResource, ItemResource) {
FeedResource.markRead();
};
+ this.isShowAll = () => {
+ return SettingsResource.get('showAll');
+ };
+
// TBD
this.createFeed = () => {
console.log('TBD');
@@ -74,4 +78,5 @@ function (FeedResource, FolderResource, ItemResource) {
console.log('TBD');
};
+
}); \ No newline at end of file