TF-1984 Show popup dialog when clicking on Empty button
(cherry picked from commit 7504d6ec3cceff0d6697fddb93bd5212f9d9028f)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user