mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue