TF-2682 Add alwaysReadReceipt to account menu item model
This commit is contained in:
@@ -6,6 +6,7 @@ import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
|||||||
enum AccountMenuItem {
|
enum AccountMenuItem {
|
||||||
profiles,
|
profiles,
|
||||||
languageAndRegion,
|
languageAndRegion,
|
||||||
|
alwaysReadReceipt,
|
||||||
emailRules,
|
emailRules,
|
||||||
forward,
|
forward,
|
||||||
vacation,
|
vacation,
|
||||||
@@ -18,6 +19,8 @@ enum AccountMenuItem {
|
|||||||
return imagePaths.icProfiles;
|
return imagePaths.icProfiles;
|
||||||
case AccountMenuItem.languageAndRegion:
|
case AccountMenuItem.languageAndRegion:
|
||||||
return imagePaths.icLanguage;
|
return imagePaths.icLanguage;
|
||||||
|
case AccountMenuItem.alwaysReadReceipt:
|
||||||
|
return imagePaths.icAlwaysReadReceipt;
|
||||||
case AccountMenuItem.emailRules:
|
case AccountMenuItem.emailRules:
|
||||||
return imagePaths.icEmailRules;
|
return imagePaths.icEmailRules;
|
||||||
case AccountMenuItem.forward:
|
case AccountMenuItem.forward:
|
||||||
@@ -39,6 +42,8 @@ enum AccountMenuItem {
|
|||||||
return AppLocalizations.of(context).language;
|
return AppLocalizations.of(context).language;
|
||||||
case AccountMenuItem.emailRules:
|
case AccountMenuItem.emailRules:
|
||||||
return AppLocalizations.of(context).emailRules;
|
return AppLocalizations.of(context).emailRules;
|
||||||
|
case AccountMenuItem.alwaysReadReceipt:
|
||||||
|
return AppLocalizations.of(context).emailReadReceipts;
|
||||||
case AccountMenuItem.forward:
|
case AccountMenuItem.forward:
|
||||||
return AppLocalizations.of(context).forwarding;
|
return AppLocalizations.of(context).forwarding;
|
||||||
case AccountMenuItem.vacation:
|
case AccountMenuItem.vacation:
|
||||||
@@ -58,6 +63,8 @@ enum AccountMenuItem {
|
|||||||
return 'language-region';
|
return 'language-region';
|
||||||
case AccountMenuItem.emailRules:
|
case AccountMenuItem.emailRules:
|
||||||
return 'email-rules';
|
return 'email-rules';
|
||||||
|
case AccountMenuItem.alwaysReadReceipt:
|
||||||
|
return 'email-read-receipts';
|
||||||
case AccountMenuItem.forward:
|
case AccountMenuItem.forward:
|
||||||
return 'forwarding';
|
return 'forwarding';
|
||||||
case AccountMenuItem.vacation:
|
case AccountMenuItem.vacation:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"@@last_modified": "2024-03-08T11:39:58.409792",
|
"@@last_modified": "2024-03-13T15:04:05.816015",
|
||||||
"initializing_data": "Initializing data...",
|
"initializing_data": "Initializing data...",
|
||||||
"@initializing_data": {
|
"@initializing_data": {
|
||||||
"type": "text",
|
"type": "text",
|
||||||
@@ -3677,5 +3677,23 @@
|
|||||||
"type": "text",
|
"type": "text",
|
||||||
"placeholders_order": [],
|
"placeholders_order": [],
|
||||||
"placeholders": {}
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"emailReadReceipts": "Email read receipts",
|
||||||
|
"@emailReadReceipts": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"emailReadReceiptsSettingExplanation": "Read receipts are notifications that can be sent to and from your users to verify that mail has been read.",
|
||||||
|
"@emailReadReceiptsSettingExplanation": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
|
"placeholders": {}
|
||||||
|
},
|
||||||
|
"emailReadReceiptsToggleDescription": "Always request read receipts with outgoing messages",
|
||||||
|
"@emailReadReceiptsToggleDescription": {
|
||||||
|
"type": "text",
|
||||||
|
"placeholders_order": [],
|
||||||
|
"placeholders": {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3833,4 +3833,22 @@ class AppLocalizations {
|
|||||||
name: 'printingFailed'
|
name: 'printingFailed'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String get emailReadReceipts {
|
||||||
|
return Intl.message(
|
||||||
|
'Email read receipts',
|
||||||
|
name: 'emailReadReceipts');
|
||||||
|
}
|
||||||
|
|
||||||
|
String get emailReadReceiptsSettingExplanation {
|
||||||
|
return Intl.message(
|
||||||
|
'Read receipts are notifications that can be sent to and from your users to verify that mail has been read.',
|
||||||
|
name: 'emailReadReceiptsSettingExplanation');
|
||||||
|
}
|
||||||
|
|
||||||
|
String get emailReadReceiptsToggleDescription {
|
||||||
|
return Intl.message(
|
||||||
|
'Always request read receipts with outgoing messages',
|
||||||
|
name: 'emailReadReceiptsToggleDescription');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user