Bug fixes
This commit is contained in:
parent
9db2ef381b
commit
af7f27dabd
|
|
@ -617,7 +617,6 @@ abstract class AppState implements Built<AppState, AppStateBuilder> {
|
||||||
//return 'Client Count: ${userCompanyState.clientState.list.length}, Last Updated: ${userCompanyState.lastUpdated}';
|
//return 'Client Count: ${userCompanyState.clientState.list.length}, Last Updated: ${userCompanyState.lastUpdated}';
|
||||||
//return 'Token: ${credentials.token} - ${userCompanyStates.map((state) => state?.token?.token ?? '').where((name) => name.isNotEmpty).join(',')}';
|
//return 'Token: ${credentials.token} - ${userCompanyStates.map((state) => state?.token?.token ?? '').where((name) => name.isNotEmpty).join(',')}';
|
||||||
return '\n\nURL: ${authState.url}\nRoute: ${uiState.currentRoute}\nPrev: ${uiState.previousRoute}\nCompany: $companyUpdated${userCompanyState.isStale ? ' [S]' : ''}\nStatic: $staticUpdated${staticState.isStale ? ' [S]' : ''}\n';
|
return '\n\nURL: ${authState.url}\nRoute: ${uiState.currentRoute}\nPrev: ${uiState.previousRoute}\nCompany: $companyUpdated${userCompanyState.isStale ? ' [S]' : ''}\nStatic: $staticUpdated${staticState.isStale ? ' [S]' : ''}\n';
|
||||||
;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,9 +24,10 @@ class _ClientViewActivityState extends State<ClientViewActivity> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final activities = widget.viewModel.client.activities;
|
final client = widget.viewModel.client;
|
||||||
|
final activities = client.activities;
|
||||||
|
|
||||||
if (activities.isEmpty) {
|
if (!client.areActivitiesLoaded) {
|
||||||
return LoadingIndicator();
|
return LoadingIndicator();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ class PaymentListBuilder extends StatelessWidget {
|
||||||
final payment = state.paymentState.map[paymentId];
|
final payment = state.paymentState.map[paymentId];
|
||||||
final client = state.clientState.map[payment.clientId] ??
|
final client = state.clientState.map[payment.clientId] ??
|
||||||
ClientEntity(id: payment.clientId);
|
ClientEntity(id: payment.clientId);
|
||||||
final listState = state.getListState(EntityType.client);
|
final listState = state.getListState(EntityType.payment);
|
||||||
final isInMultiselect = listState.isInMultiselect();
|
final isInMultiselect = listState.isInMultiselect();
|
||||||
|
|
||||||
void showDialog() => showEntityActionsDialog(
|
void showDialog() => showEntityActionsDialog(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue