Settings
This commit is contained in:
parent
f3c3a00bdc
commit
16fdb6f5ca
|
|
@ -88,8 +88,7 @@ class AuthRepository {
|
|||
'?include=tax_rates,users,custom_payment_terms,task_statuses,expense_categories&include_static=true';
|
||||
*/
|
||||
|
||||
url +=
|
||||
'?include=company.groups,company.company_gateways.gateway&include_static=true';
|
||||
url += '?include=company.groups,company.company_gateways.gateway&include_static=true';
|
||||
|
||||
final dynamic response =
|
||||
await webClient.post(url, token ?? '', data: json.encode(data));
|
||||
|
|
|
|||
|
|
@ -72,9 +72,6 @@ UserCompanyEntity loadCompanySuccessReducer(
|
|||
..userMap.replace(BuiltMap<String, UserEntity>())
|
||||
..customFields.replace(BuiltMap<String, String>()));
|
||||
|
||||
print(
|
||||
'${userCompany.company.companyKey} map: ${userCompany.company.expenseCategoryMap}');
|
||||
|
||||
return userCompany;
|
||||
|
||||
if (userCompany.company.taskStatuses != null) {
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ class _ClientPortalState extends State<ClientPortal>
|
|||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
_controller = TabController(vsync: this, length: 3);
|
||||
_controller = TabController(vsync: this, length: 4);
|
||||
}
|
||||
|
||||
@override
|
||||
|
|
@ -112,6 +112,9 @@ class _ClientPortalState extends State<ClientPortal>
|
|||
Tab(
|
||||
text: localization.authorization,
|
||||
),
|
||||
Tab(
|
||||
text: localization.messages,
|
||||
),
|
||||
Tab(
|
||||
text: localization.customize,
|
||||
),
|
||||
|
|
@ -281,6 +284,11 @@ class _ClientPortalState extends State<ClientPortal>
|
|||
),
|
||||
],
|
||||
),
|
||||
ListView(
|
||||
children: <Widget>[
|
||||
// TODO implement fields
|
||||
],
|
||||
),
|
||||
ListView(
|
||||
children: <Widget>[
|
||||
FormCard(
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ abstract class LocaleCodeAware {
|
|||
mixin LocalizationsProvider on LocaleCodeAware {
|
||||
static final Map<String, Map<String, String>> _localizedValues = {
|
||||
'en': {
|
||||
'messages': 'Messages',
|
||||
'custom_css': 'Custom CSS',
|
||||
'custom_javascript': 'Custom JavaScript',
|
||||
'signature_on_pdf': 'Show on PDF',
|
||||
|
|
@ -15129,6 +15130,10 @@ mixin LocalizationsProvider on LocaleCodeAware {
|
|||
String get customJavascript =>
|
||||
_localizedValues[localeCode]['custom_javascript'];
|
||||
|
||||
String get messages =>
|
||||
_localizedValues[localeCode]['messages'];
|
||||
|
||||
|
||||
String lookup(String key) {
|
||||
final lookupKey = toSnakeCase(key);
|
||||
return _localizedValues[localeCode][lookupKey] ??
|
||||
|
|
|
|||
Loading…
Reference in New Issue