mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-09 06:28:28 +03:00
Added icon to system folders
This commit is contained in:
parent
eaf405e250
commit
cc03185ea0
3 changed files with 19 additions and 6 deletions
|
|
@ -467,6 +467,19 @@ export class FolderModel extends AbstractModel {
|
|||
|
||||
detailedName: () => this.name() + ' ' + this.nameInfo(),
|
||||
|
||||
icon: () => {
|
||||
switch (this.type())
|
||||
{
|
||||
case 1: return '📥'; // FolderType.Inbox
|
||||
case 2: return '📧'; // FolderType.Sent icon-paper-plane
|
||||
case 3: return '🗎'; // FolderType.Drafts
|
||||
case 4: return '⚠'; // FolderType.Junk
|
||||
case 5: return '🗑'; // FolderType.Trash
|
||||
case 6: return '🗄'; // FolderType.Archive
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
||||
hasSubscribedUnreadMessagesSubfolders: () =>
|
||||
!!this.subFolders().find(
|
||||
folder => folder.unreadEmails() | folder.hasSubscribedUnreadMessagesSubfolders()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue