TF-1984 Show Empty action for Trash and Spam mailbox
(cherry picked from commit da70fe0678982be8bb4c2f8daa4c3cb76fc058a0)
This commit is contained in:
@@ -47,6 +47,8 @@ extension PresentationMailboxExtension on PresentationMailbox {
|
||||
|
||||
bool get allowedToDisplayCountOfTotalEmails => isTrash || isSpam;
|
||||
|
||||
bool get allowedHasEmptyAction => (isTrash || isSpam) && countTotalEmails > 0;
|
||||
|
||||
String get countTotalEmailsAsString {
|
||||
if (countTotalEmails <= 0) return '';
|
||||
return countTotalEmails <= 999 ? '$countTotalEmails' : '999+';
|
||||
|
||||
Reference in New Issue
Block a user