TF-1176 Fix delete button is enable even when no mailbox is selected
This commit is contained in:
@@ -11,4 +11,10 @@ extension ListPresentationMailboxExtension on List<PresentationMailbox> {
|
||||
|
||||
List<PresentationMailbox> get listPersonalMailboxes =>
|
||||
where((mailbox) => mailbox.isPersonal).toList();
|
||||
|
||||
bool get isAllPersonalMailboxes => every((mailbox) => mailbox.isPersonal && !mailbox.isDefault);
|
||||
|
||||
bool get isAllDefaultMailboxes => every((mailbox) => mailbox.isDefault);
|
||||
|
||||
bool get isAllUnreadMailboxes => every((mailbox) => mailbox.getCountUnReadEmails().isNotEmpty);
|
||||
}
|
||||
Reference in New Issue
Block a user