TF-3939 Replace email selection bottom actions to top actions
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -58,6 +58,9 @@ extension PresentationMailboxExtension on PresentationMailbox {
|
||||
|
||||
bool get allowedHasEmptyAction => (isTrash || isSpam) && countTotalEmails > 0;
|
||||
|
||||
bool get isDeletePermanentlyEnabled =>
|
||||
isTrash == true || isDrafts == true || isSpam == true;
|
||||
|
||||
String get countTotalEmailsAsString {
|
||||
if (countTotalEmails <= 0) return '';
|
||||
return countTotalEmails <= 999 ? '$countTotalEmails' : '999+';
|
||||
|
||||
Reference in New Issue
Block a user