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