TF-4227 Update the correct message for the Tag when there are no emails.

This commit is contained in:
dab246
2025-12-26 18:55:13 +07:00
committed by Dat H. Pham
parent 8f6d9a6e8f
commit f9675556cb
3 changed files with 17 additions and 0 deletions
@@ -15,6 +15,7 @@ class EmptyEmailsWidget extends StatelessWidget {
final bool isNetworkConnectionAvailable;
final bool isFavoriteFolder;
final bool isActionRequiredFolder;
final bool isLabelMailbox;
final _responsiveUtils = Get.find<ResponsiveUtils>();
final _imagePaths = Get.find<ImagePaths>();
@@ -26,6 +27,7 @@ class EmptyEmailsWidget extends StatelessWidget {
this.isNetworkConnectionAvailable = true,
this.isFavoriteFolder = false,
this.isActionRequiredFolder = false,
this.isLabelMailbox = false,
}) : super(key: key);
@override
@@ -102,6 +104,8 @@ class EmptyEmailsWidget extends StatelessWidget {
return appLocalizations.youDoNotHaveAnyFavoritesEmails;
} else if (isActionRequiredFolder) {
return appLocalizations.youDoNotHaveAnyActionRequiredEmails;
} else if (isLabelMailbox) {
return appLocalizations.youDoNotHaveAnyEmailTaggedWithThis;
} else {
return appLocalizations.youDoNotHaveAnyEmailInYourCurrentFolder;
}
+6
View File
@@ -5359,5 +5359,11 @@
"placeholders": {
"labelName": {}
}
},
"youDoNotHaveAnyEmailTaggedWithThis": "You don't have any emails tagged with this.",
"@youDoNotHaveAnyEmailTaggedWithThis": {
"type": "text",
"placeholders_order": [],
"placeholders": {}
}
}
@@ -5666,4 +5666,11 @@ class AppLocalizations {
);
}
String get youDoNotHaveAnyEmailTaggedWithThis {
return Intl.message(
'You don\'t have any emails tagged with this.',
name: 'youDoNotHaveAnyEmailTaggedWithThis',
);
}
}