mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Add unread count to page title
This commit is contained in:
parent
be150d7fc9
commit
ff8ef2012b
5 changed files with 52 additions and 8 deletions
|
|
@ -137,6 +137,12 @@ FolderModel.prototype.initComputed = function ()
|
|||
iUnread = this.messageCountUnread(),
|
||||
iType = this.type()
|
||||
;
|
||||
|
||||
if (Enums.FolderType.Inbox === iType)
|
||||
{
|
||||
RL.data().foldersInboxUnreadCount(iUnread);
|
||||
}
|
||||
|
||||
// return 0 < iUnread ? '' + iUnread : '';
|
||||
// return 0 < iUnread && 'INBOX' === this.fullNameRaw ? '' + iUnread : '';
|
||||
return 0 < iUnread && (Enums.FolderType.Inbox === iType || Enums.FolderType.Spam === iType) ? '' + iUnread :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue