diff options
Diffstat (limited to 'js/build/app.js')
-rw-r--r-- | js/build/app.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/build/app.js b/js/build/app.js index 31432ddf2..e7920121b 100644 --- a/js/build/app.js +++ b/js/build/app.js @@ -609,6 +609,10 @@ app.controller('NavigationController', return FeedResource.getUnreadCount(); }; + this.isUnread = function () { + return this.getUnreadCount() > 0; + }; + this.getFeedUnreadCount = function (feedId) { var feed = FeedResource.getById(feedId); if (feed !== undefined) { @@ -618,14 +622,26 @@ app.controller('NavigationController', } }; + this.isFeedUnread = function (feedId) { + return this.getFeedUnreadCount(feedId) > 0; + }; + this.getFolderUnreadCount= function (folderId) { return FeedResource.getFolderUnreadCount(folderId); }; + this.isFolderUnread = function (folderId) { + return this.getFolderUnreadCount(folderId) > 0; + }; + this.getStarredCount = function () { return ItemResource.getStarredCount(); }; + this.isStarredUnread = function () { + return this.getStarredCount() > 0; + }; + this.toggleFolder = function (folderName) { FolderResource.toggleOpen(folderName); }; |