TF-1194 create new default identity: add presentation layer

This commit is contained in:
sherlockvn
2023-01-16 17:05:20 +07:00
committed by Dat Vu
parent ce46de9e73
commit 8587b9e8bd
9 changed files with 728 additions and 586 deletions
+31 -6
View File
@@ -1212,6 +1212,13 @@ class AppLocalizations {
name: 'identities');
}
String get setDefaultIdentity {
return Intl.message(
'Set as default identity',
name: 'setDefaultIdentity'
);
}
String get identitiesSettingExplanation {
return Intl.message(
'Select the identity or email address you want to use to send an emails',
@@ -1235,16 +1242,16 @@ class AppLocalizations {
name: 'name');
}
String get reply_to_address {
String get reply_to {
return Intl.message(
'Reply to address',
name: 'reply_to_address');
'Reply to',
name: 'reply_to');
}
String get bcc_to_address {
String get bcc_to {
return Intl.message(
'Bcc to address',
name: 'bcc_to_address');
'Bcc to',
name: 'bcc_to');
}
String get signature {
@@ -1265,6 +1272,12 @@ class AppLocalizations {
name: 'html_template');
}
String get html {
return Intl.message(
'Html',
name: 'html');
}
String get create {
return Intl.message(
'Create',
@@ -1277,6 +1290,12 @@ class AppLocalizations {
name: 'you_have_created_a_new_identity');
}
String get you_have_created_a_new_default_identity {
return Intl.message(
'You have created a new default identity',
name: 'you_have_created_a_new_default_identity');
}
String get all_identities {
return Intl.message(
'All identities',
@@ -2683,4 +2702,10 @@ class AppLocalizations {
name: 'enableSpamReport',
);
}
String get required {
return Intl.message(
'required',
name: 'required');
}
}
-9
View File
@@ -8,8 +8,6 @@ import 'package:tmail_ui_user/features/destination_picker/presentation/destinati
import 'package:tmail_ui_user/features/destination_picker/presentation/destination_picker_view.dart' deferred as destination_picker;
import 'package:tmail_ui_user/features/home/presentation/home_bindings.dart';
import 'package:tmail_ui_user/features/home/presentation/home_view.dart';
import 'package:tmail_ui_user/features/identity_creator/presentation/identity_creator_bindings.dart';
import 'package:tmail_ui_user/features/identity_creator/presentation/identity_creator_view.dart' deferred as identity_creator;
import 'package:tmail_ui_user/features/contact/presentation/contact_view.dart' deferred as contact_view;
import 'package:tmail_ui_user/features/rules_filter_creator/presentation/rules_filter_creator_bindings.dart';
import 'package:tmail_ui_user/features/rules_filter_creator/presentation/rules_filter_creator_view.dart' deferred as rules_filter_creator;
@@ -92,13 +90,6 @@ class AppPages {
contact_view.loadLibrary,
() => contact_view.ContactView()),
binding: ContactBindings()),
GetPage(
name: AppRoutes.identityCreator,
opaque: false,
page: () => DeferredWidget(
identity_creator.loadLibrary,
() => identity_creator.IdentityCreatorView()),
binding: IdentityCreatorBindings()),
GetPage(
name: AppRoutes.rulesFilterCreator,
opaque: false,