TF-3939 Replace email selection bottom actions to top actions

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2025-08-05 11:50:14 +07:00
committed by Dat H. Pham
parent 6e86946a1a
commit b7af668d4a
10 changed files with 258 additions and 127 deletions
@@ -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+';