TF-4227 Update the correct message for the Tag when there are no emails.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user