TF-2667 Show confirm dialog when click close composer

Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
dab246
2024-03-06 01:50:54 +07:00
committed by Dat H. Pham
parent 57a41a6a50
commit 490a913bdb
6 changed files with 137 additions and 19 deletions
@@ -3974,4 +3974,22 @@ class AppLocalizations {
'Close anyway',
name: 'closeAnyway');
}
String get saveMessage {
return Intl.message(
'Save message',
name: 'saveMessage');
}
String get discardChanges {
return Intl.message(
'Discard changes',
name: 'discardChanges');
}
String get warningMessageWhenClickCloseComposer {
return Intl.message(
'Save this message to your drafts folder and close composer?',
name: 'warningMessageWhenClickCloseComposer');
}
}