From 4fa9c6d6cfc24b848bc8bb1526ef8ef50f046cb3 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 23 May 2014 13:26:01 +0200 Subject: add missing controller methods bodies --- js/controller/ContentController.js | 18 +++++++++++++++-- js/controller/NavigationController.js | 37 +++++++++++++++++++++++++++++++++++ js/controller/SettingsController.js | 12 ++++++------ 3 files changed, 59 insertions(+), 8 deletions(-) (limited to 'js/controller') diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js index 796fea71a..9edac534f 100644 --- a/js/controller/ContentController.js +++ b/js/controller/ContentController.js @@ -20,7 +20,21 @@ function (Publisher, FeedResource, ItemResource, data) { return ItemResource.getAll(); }; - this.getFeeds = () => { - return FeedResource.getAll(); + // TBD + this.toggleStar = (itemId) => { + console.log(itemId); }; + + this.markRead = (itemId) => { + console.log(itemId); + }; + + this.getFeed = (feedId) => { + console.log(feedId); + }; + + this.keepUnread = (itemId) => { + console.log(itemId); + }; + }); \ No newline at end of file diff --git a/js/controller/NavigationController.js b/js/controller/NavigationController.js index 292f98110..299d433da 100644 --- a/js/controller/NavigationController.js +++ b/js/controller/NavigationController.js @@ -37,4 +37,41 @@ function (FeedResource, FolderResource, ItemResource) { FeedResource.markRead(); }; + // TBD + this.createFeed = () => { + console.log('TBD'); + }; + + this.createFolder = () => { + console.log('TBD'); + }; + + this.renameFeed = () => { + console.log('TBD'); + }; + + this.renameFolder = () => { + console.log('TBD'); + }; + + this.deleteFeed = () => { + console.log('TBD'); + }; + + this.deleteFolder = () => { + console.log('TBD'); + }; + + this.moveFeed = () => { + console.log('TBD'); + }; + + this.isActive = () => { + console.log('TBD'); + }; + + this.isVisible = () => { + console.log('TBD'); + }; + }); \ No newline at end of file diff --git a/js/controller/SettingsController.js b/js/controller/SettingsController.js index 37dbaa9b3..781790acc 100644 --- a/js/controller/SettingsController.js +++ b/js/controller/SettingsController.js @@ -34,19 +34,19 @@ function ($route, SettingsResource, FeedResource) { }; - this.importOpml = (content) => { - console.log(content); + this.feedSize = () => { + return FeedResource.size(); }; - this.importArticles = (content) => { + // TBD + this.importOpml = (content) => { console.log(content); }; - this.feedSize = () => { - return FeedResource.size(); + this.importArticles = (content) => { + console.log(content); }; - }); \ No newline at end of file -- cgit v1.2.3