Add paymentEmailAllContacts to settings model
This commit is contained in:
parent
ca75884848
commit
00ffc3fc41
|
|
@ -302,7 +302,7 @@ class _PaymentSettingsState extends State<PaymentSettings> {
|
|||
: settings.paymentEmailAllContacts ?? false,
|
||||
onChanged: (value) => viewModel.onSettingsChanged(settings
|
||||
.rebuild((b) => b..paymentEmailAllContacts = value)),
|
||||
label: localization.sendEmailTo,
|
||||
label: localization.sendEmailsTo,
|
||||
iconData: Icons.email,
|
||||
enabledLabel: localization.primaryContact,
|
||||
disabledLabel: localization.allContacts,
|
||||
|
|
|
|||
|
|
@ -422,6 +422,7 @@ class SettingsSearch extends StatelessWidget {
|
|||
'allow_under_payment',
|
||||
'auto_bill_standard_invoices#2023-01-17',
|
||||
'client_initiated_payments#2023-03-20',
|
||||
'send_emails_to#2023-11-30',
|
||||
]
|
||||
],
|
||||
kSettingsTaxSettings: [
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
static final Map<String, Map<String, String>> _localizedValues = {
|
||||
'en': {
|
||||
// STARTER: lang key - do not remove comment
|
||||
'send_email_to': 'Send Email To',
|
||||
'send_emails_to': 'Send Emails To',
|
||||
'primary_contact': 'Primary Contact',
|
||||
'all_contacts': 'All Contacts',
|
||||
'insert_below': 'Insert Below',
|
||||
|
|
@ -110964,10 +110964,9 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
_localizedValues[localeCode]!['all_contacts'] ??
|
||||
_localizedValues['en']!['all_contacts']!;
|
||||
|
||||
String get sendEmailTo =>
|
||||
_localizedValues[localeCode]!['send_email_to'] ??
|
||||
_localizedValues['en']!['send_email_to']!;
|
||||
|
||||
String get sendEmailsTo =>
|
||||
_localizedValues[localeCode]!['send_emails_to'] ??
|
||||
_localizedValues['en']!['send_emails_to']!;
|
||||
|
||||
// STARTER: lang field - do not remove comment
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue