TF-1984 Show popup dialog when clicking on Empty button

(cherry picked from commit 7504d6ec3cceff0d6697fddb93bd5212f9d9028f)
This commit is contained in:
dab246
2023-08-30 16:16:35 +07:00
committed by Dat Vu
parent 41a1efb5de
commit 3c173caa4e
15 changed files with 358 additions and 33 deletions
@@ -43,9 +43,9 @@ extension PresentationMailboxExtension on PresentationMailbox {
bool get isSubscribedMailbox => isSubscribed != null && isSubscribed?.value == true;
bool get allowedToDisplayCountOfUnreadEmails => !(isTrash || isSpam || isDrafts || isTemplates || isSent);
bool get allowedToDisplayCountOfUnreadEmails => !(isTrash || isSpam || isDrafts || isTemplates || isSent) && countUnreadEmails > 0;
bool get allowedToDisplayCountOfTotalEmails => isTrash || isSpam;
bool get allowedToDisplayCountOfTotalEmails => (isTrash || isSpam) && countTotalEmails > 0;
bool get allowedHasEmptyAction => (isTrash || isSpam) && countTotalEmails > 0;