mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Resolve #1111
This commit is contained in:
parent
932b71f345
commit
88279c55e0
4 changed files with 18 additions and 38 deletions
|
|
@ -445,17 +445,19 @@ export class FolderModel extends AbstractModel {
|
|||
return name;
|
||||
},
|
||||
|
||||
manageFolderSystemName: () => {
|
||||
nameInfo: () => {
|
||||
if (this.isSystemFolder()) {
|
||||
translateTrigger();
|
||||
let suffix = getSystemFolderName(this.type(), getKolabFolderName(this.kolabType()));
|
||||
if (this.name() !== suffix && 'inbox' !== suffix.toLowerCase()) {
|
||||
return '(' + suffix + ')';
|
||||
return ' (' + suffix + ')';
|
||||
}
|
||||
}
|
||||
return '';
|
||||
},
|
||||
|
||||
detailedName: () => this.name() + ' ' + this.nameInfo(),
|
||||
|
||||
hasSubscribedUnreadMessagesSubfolders: () =>
|
||||
!!this.subFolders().find(
|
||||
folder => folder.unreadCount() | folder.hasSubscribedUnreadMessagesSubfolders()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue