Update toast message when start download all attachment
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -514,11 +514,12 @@ class SingleEmailController extends BaseController with AppLoaderMixin {
|
||||
);
|
||||
|
||||
if (currentOverlayContext != null && currentContext != null) {
|
||||
appToast.showToastMessage(
|
||||
appToast.showToastSuccessMessage(
|
||||
currentOverlayContext!,
|
||||
AppLocalizations.of(currentContext!).your_download_has_started,
|
||||
leadingSVGIconColor: AppColor.primaryColor,
|
||||
leadingSVGIcon: imagePaths.icDownload);
|
||||
AppLocalizations.of(currentContext!).creatingAnArchiveForDownloading,
|
||||
leadingSVGIconColor: Colors.white,
|
||||
leadingSVGIcon: imagePaths.icDownloadAll,
|
||||
);
|
||||
}
|
||||
} else if (success is DownloadingAllAttachmentsForWeb) {
|
||||
final percent = success.progress.round();
|
||||
|
||||
@@ -4576,12 +4576,6 @@
|
||||
"placeholders_order": [],
|
||||
"placeholders": {}
|
||||
},
|
||||
"archiveAndDownload": "Archive and download",
|
||||
"@archiveAndDownload": {
|
||||
"type": "text",
|
||||
"placeholders_order": [],
|
||||
"placeholders": {}
|
||||
},
|
||||
"countMessageInSpam": "{count} message in spam",
|
||||
"@countMessageInSpam": {
|
||||
"type": "text",
|
||||
@@ -4659,5 +4653,17 @@
|
||||
"type": "text",
|
||||
"placeholders_order": [],
|
||||
"placeholders": {}
|
||||
},
|
||||
"archiveAndDownload": "Archive and download",
|
||||
"@archiveAndDownload": {
|
||||
"type": "text",
|
||||
"placeholders_order": [],
|
||||
"placeholders": {}
|
||||
},
|
||||
"creatingAnArchiveForDownloading": "Creating an archive for downloading",
|
||||
"@creatingAnArchiveForDownloading": {
|
||||
"type": "text",
|
||||
"placeholders_order": [],
|
||||
"placeholders": {}
|
||||
}
|
||||
}
|
||||
@@ -4912,4 +4912,11 @@ class AppLocalizations {
|
||||
name: 'archiveAndDownload',
|
||||
);
|
||||
}
|
||||
|
||||
String get creatingAnArchiveForDownloading {
|
||||
return Intl.message(
|
||||
'Creating an archive for downloading',
|
||||
name: 'creatingAnArchiveForDownloading',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user