From f9675556cbd935acf49fa9e37c8d34b9f2c6e3ca Mon Sep 17 00:00:00 2001 From: dab246 Date: Fri, 26 Dec 2025 18:55:13 +0700 Subject: [PATCH] TF-4227 Update the correct message for the Tag when there are no emails. --- .../thread/presentation/widgets/empty_emails_widget.dart | 4 ++++ lib/l10n/intl_messages.arb | 6 ++++++ lib/main/localizations/app_localizations.dart | 7 +++++++ 3 files changed, 17 insertions(+) diff --git a/lib/features/thread/presentation/widgets/empty_emails_widget.dart b/lib/features/thread/presentation/widgets/empty_emails_widget.dart index a9f508d2b..a758eae42 100644 --- a/lib/features/thread/presentation/widgets/empty_emails_widget.dart +++ b/lib/features/thread/presentation/widgets/empty_emails_widget.dart @@ -15,6 +15,7 @@ class EmptyEmailsWidget extends StatelessWidget { final bool isNetworkConnectionAvailable; final bool isFavoriteFolder; final bool isActionRequiredFolder; + final bool isLabelMailbox; final _responsiveUtils = Get.find(); final _imagePaths = Get.find(); @@ -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; } diff --git a/lib/l10n/intl_messages.arb b/lib/l10n/intl_messages.arb index 0c57d4123..8fac598ca 100644 --- a/lib/l10n/intl_messages.arb +++ b/lib/l10n/intl_messages.arb @@ -5359,5 +5359,11 @@ "placeholders": { "labelName": {} } + }, + "youDoNotHaveAnyEmailTaggedWithThis": "You don't have any emails tagged with this.", + "@youDoNotHaveAnyEmailTaggedWithThis": { + "type": "text", + "placeholders_order": [], + "placeholders": {} } } \ No newline at end of file diff --git a/lib/main/localizations/app_localizations.dart b/lib/main/localizations/app_localizations.dart index d1a823087..29d1f22ab 100644 --- a/lib/main/localizations/app_localizations.dart +++ b/lib/main/localizations/app_localizations.dart @@ -5666,4 +5666,11 @@ class AppLocalizations { ); } + + String get youDoNotHaveAnyEmailTaggedWithThis { + return Intl.message( + 'You don\'t have any emails tagged with this.', + name: 'youDoNotHaveAnyEmailTaggedWithThis', + ); + } }