Settings
This commit is contained in:
parent
632b8b99be
commit
a5520c2cc8
|
|
@ -384,7 +384,7 @@ abstract class AppState implements Built<AppState, AppStateBuilder> {
|
||||||
//return 'Fields: ${uiState.settingsUIState.company.customFields} - ${company.customFields}';
|
//return 'Fields: ${uiState.settingsUIState.company.customFields} - ${company.customFields}';
|
||||||
//return 'Custom: ${uiState.settingsUIState.company.settings.customValue1} - ${company.settings.customValue1}';
|
//return 'Custom: ${uiState.settingsUIState.company.settings.customValue1} - ${company.settings.customValue1}';
|
||||||
//return 'Platform: ${userCompany.token.token}';
|
//return 'Platform: ${userCompany.token.token}';
|
||||||
return 'Activites: ${company.activities}';
|
return 'Activites: ${company.users} ${company.userMap}';
|
||||||
return 'Route: ${uiState.currentRoute} Prev: ${uiState.previousRoute}';
|
return 'Route: ${uiState.currentRoute} Prev: ${uiState.previousRoute}';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -61,17 +61,15 @@ UserCompanyEntity loadCompanySuccessReducer(
|
||||||
var userCompany = action.userCompany;
|
var userCompany = action.userCompany;
|
||||||
|
|
||||||
userCompany = userCompany.rebuild((b) => b.company
|
userCompany = userCompany.rebuild((b) => b.company
|
||||||
..taxRates.replace(<TaxRateEntity>[])
|
|
||||||
..taskStatuses.replace(<TaskStatusEntity>[])
|
..taskStatuses.replace(<TaskStatusEntity>[])
|
||||||
..taskStatusMap.replace(BuiltMap<String, TaskStatusEntity>())
|
..taskStatusMap.replace(BuiltMap<String, TaskStatusEntity>())
|
||||||
..expenseCategories.replace(<ExpenseCategoryEntity>[])
|
..expenseCategories.replace(<ExpenseCategoryEntity>[])
|
||||||
..expenseCategoryMap.replace(BuiltMap<String, ExpenseCategoryEntity>())
|
..expenseCategoryMap.replace(BuiltMap<String, ExpenseCategoryEntity>()));
|
||||||
..users.replace(<UserEntity>[])
|
|
||||||
..userMap.replace(BuiltMap<String, UserEntity>()));
|
/*
|
||||||
|
|
||||||
return userCompany;
|
return userCompany;
|
||||||
|
|
||||||
/*
|
|
||||||
if (userCompany.company.taskStatuses != null) {
|
if (userCompany.company.taskStatuses != null) {
|
||||||
userCompany = userCompany
|
userCompany = userCompany
|
||||||
..company.rebuild((b) => b
|
..company.rebuild((b) => b
|
||||||
|
|
@ -91,6 +89,7 @@ UserCompanyEntity loadCompanySuccessReducer(
|
||||||
value: (dynamic item) => item,
|
value: (dynamic item) => item,
|
||||||
)));
|
)));
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
return userCompany
|
return userCompany
|
||||||
..company.rebuild((b) => b
|
..company.rebuild((b) => b
|
||||||
|
|
@ -99,7 +98,6 @@ UserCompanyEntity loadCompanySuccessReducer(
|
||||||
key: (dynamic item) => item.id,
|
key: (dynamic item) => item.id,
|
||||||
value: (dynamic item) => item,
|
value: (dynamic item) => item,
|
||||||
)));
|
)));
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
UserCompanyEntity saveCompanySuccessReducer(
|
UserCompanyEntity saveCompanySuccessReducer(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue