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) {
|
if (currentOverlayContext != null && currentContext != null) {
|
||||||
appToast.showToastMessage(
|
appToast.showToastSuccessMessage(
|
||||||
currentOverlayContext!,
|
currentOverlayContext!,
|
||||||
AppLocalizations.of(currentContext!).your_download_has_started,
|
AppLocalizations.of(currentContext!).creatingAnArchiveForDownloading,
|
||||||
leadingSVGIconColor: AppColor.primaryColor,
|
leadingSVGIconColor: Colors.white,
|
||||||
leadingSVGIcon: imagePaths.icDownload);
|
leadingSVGIcon: imagePaths.icDownloadAll,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
} else if (success is DownloadingAllAttachmentsForWeb) {
|
} else if (success is DownloadingAllAttachmentsForWeb) {
|
||||||
final percent = success.progress.round();
|
final percent = success.progress.round();
|
||||||
|
|||||||
@@ -4576,12 +4576,6 @@
|
|||||||
"placeholders_order": [],
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
},
|
},
|
||||||
"archiveAndDownload": "Archive and download",
|
|
||||||
"@archiveAndDownload": {
|
|
||||||
"type": "text",
|
|
||||||
"placeholders_order": [],
|
|
||||||
"placeholders": {}
|
|
||||||
},
|
|
||||||
"countMessageInSpam": "{count} message in spam",
|
"countMessageInSpam": "{count} message in spam",
|
||||||
"@countMessageInSpam": {
|
"@countMessageInSpam": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
@@ -4659,5 +4653,17 @@
|
|||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders_order": [],
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"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',
|
name: 'archiveAndDownload',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String get creatingAnArchiveForDownloading {
|
||||||
|
return Intl.message(
|
||||||
|
'Creating an archive for downloading',
|
||||||
|
name: 'creatingAnArchiveForDownloading',
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user