From ddb0d5020f4deccc2aec9d959ea434828e60a699 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 28 May 2015 15:42:32 +0200 Subject: try to fix out of syn issue --- js/build/app.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'js/build/app.js') 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); }; -- cgit v1.2.3