TF-2026 Add SaveToDraftAndClose method

(cherry picked from commit f319001c5e30ea33175476aefb9942464b540c8f)
This commit is contained in:
dab246
2023-08-30 18:59:40 +07:00
committed by Dat Vu
parent a1277497b8
commit 5f0b27e742
4 changed files with 9 additions and 7 deletions
@@ -98,7 +98,7 @@ class ComposerView extends BaseComposerView {
child: buildIconWeb(
icon: SvgPicture.asset(imagePaths.icCloseMailbox, fit: BoxFit.fill),
tooltip: AppLocalizations.of(context).saveAndClose,
onTap: () => controller.saveEmailAsDrafts(context)
onTap: () => controller.saveToDraftAndClose(context)
)),
buildIconWeb(
icon: SvgPicture.asset(imagePaths.icFullScreenComposer, fit: BoxFit.fill),
@@ -176,7 +176,7 @@ class ComposerView extends BaseComposerView {
iconPadding: EdgeInsets.zero,
icon: SvgPicture.asset(imagePaths.icCloseMailbox, fit: BoxFit.fill),
tooltip: AppLocalizations.of(context).saveAndClose,
onTap: () => controller.saveEmailAsDrafts(context)
onTap: () => controller.saveToDraftAndClose(context)
),
if (responsiveUtils.isDesktop(context))
...[