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 isNetworkConnectionAvailable;
|
||||||
final bool isFavoriteFolder;
|
final bool isFavoriteFolder;
|
||||||
final bool isActionRequiredFolder;
|
final bool isActionRequiredFolder;
|
||||||
|
final bool isLabelMailbox;
|
||||||
|
|
||||||
final _responsiveUtils = Get.find<ResponsiveUtils>();
|
final _responsiveUtils = Get.find<ResponsiveUtils>();
|
||||||
final _imagePaths = Get.find<ImagePaths>();
|
final _imagePaths = Get.find<ImagePaths>();
|
||||||
@@ -26,6 +27,7 @@ class EmptyEmailsWidget extends StatelessWidget {
|
|||||||
this.isNetworkConnectionAvailable = true,
|
this.isNetworkConnectionAvailable = true,
|
||||||
this.isFavoriteFolder = false,
|
this.isFavoriteFolder = false,
|
||||||
this.isActionRequiredFolder = false,
|
this.isActionRequiredFolder = false,
|
||||||
|
this.isLabelMailbox = false,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -102,6 +104,8 @@ class EmptyEmailsWidget extends StatelessWidget {
|
|||||||
return appLocalizations.youDoNotHaveAnyFavoritesEmails;
|
return appLocalizations.youDoNotHaveAnyFavoritesEmails;
|
||||||
} else if (isActionRequiredFolder) {
|
} else if (isActionRequiredFolder) {
|
||||||
return appLocalizations.youDoNotHaveAnyActionRequiredEmails;
|
return appLocalizations.youDoNotHaveAnyActionRequiredEmails;
|
||||||
|
} else if (isLabelMailbox) {
|
||||||
|
return appLocalizations.youDoNotHaveAnyEmailTaggedWithThis;
|
||||||
} else {
|
} else {
|
||||||
return appLocalizations.youDoNotHaveAnyEmailInYourCurrentFolder;
|
return appLocalizations.youDoNotHaveAnyEmailInYourCurrentFolder;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5359,5 +5359,11 @@
|
|||||||
"placeholders": {
|
"placeholders": {
|
||||||
"labelName": {}
|
"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