mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09:20 +03:00
Rename printableUnreadCount() to unreadCount()
This commit is contained in:
parent
cfdc37189b
commit
c50670fc7f
4 changed files with 6 additions and 6 deletions
|
|
@ -447,7 +447,7 @@ export class FolderModel extends AbstractModel {
|
|||
return folder.hasVisibleSubfolders() | visible;
|
||||
},
|
||||
|
||||
printableUnreadCount: () => folder.unreadEmails() || null,
|
||||
unreadCount: () => folder.unreadEmails() || null,
|
||||
/*
|
||||
{
|
||||
// TODO: make this optional in Settings
|
||||
|
|
@ -482,11 +482,11 @@ export class FolderModel extends AbstractModel {
|
|||
|
||||
hasSubscribedUnreadMessagesSubfolders: () =>
|
||||
!!folder.subFolders().find(
|
||||
folder => folder.printableUnreadCount() | folder.hasSubscribedUnreadMessagesSubfolders()
|
||||
folder => folder.unreadCount() | folder.hasSubscribedUnreadMessagesSubfolders()
|
||||
)
|
||||
/*
|
||||
!!folder.subFolders().filter(
|
||||
folder => folder.printableUnreadCount() | folder.hasSubscribedUnreadMessagesSubfolders()
|
||||
folder => folder.unreadCount() | folder.hasSubscribedUnreadMessagesSubfolders()
|
||||
).length
|
||||
*/
|
||||
// ,href: () => folder.canBeSelected() && mailBox(folder.fullNameHash)
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ export class MailFolderList extends AbstractViewLeft {
|
|||
let search = '';
|
||||
if (event.target.matches('.flag-icon') && !folder.isFlagged()) {
|
||||
search = 'flagged';
|
||||
} else if (folder.printableUnreadCount() && event.clientX > el.getBoundingClientRect().right - 25) {
|
||||
} else if (folder.unreadCount() && event.clientX > el.getBoundingClientRect().right - 25) {
|
||||
search = 'unseen';
|
||||
}
|
||||
hasher.setHash(mailBox(folder.fullNameHash, 1, search));
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<li>
|
||||
<a data-bind="dropmessages: $data,
|
||||
css: { 'selected': selected, 'selectable': selectable, 'anim-action-class': actionBlink, 'is-flagged': isFlagged },
|
||||
attr: { 'data-unread': printableUnreadCount }">
|
||||
attr: { 'data-unread': unreadCount }">
|
||||
<!-- ko text: localName --><!-- /ko -->
|
||||
<!-- ko if: isInbox -->
|
||||
<span class="flag-icon fontastic"></span>
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<li>
|
||||
<a data-bind="dropmessages: $data,
|
||||
css: { 'selected': selected() && !isSystemFolder(), 'system': isSystemFolder, 'selectable': canBeSelected, 'unread-sub': hasSubscribedUnreadMessagesSubfolders, 'anim-action-class': actionBlink },
|
||||
attr: { 'data-unread': printableUnreadCount }">
|
||||
attr: { 'data-unread': unreadCount }">
|
||||
<i data-bind="css: collapsedCss()"></i>
|
||||
<!-- ko text: name --><!-- /ko -->
|
||||
</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue