Not able to set client settings in mobile app
This commit is contained in:
parent
5673e2b99d
commit
f41ccf2dba
|
|
@ -368,6 +368,10 @@ void handleClientAction(
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case EntityAction.settings:
|
case EntityAction.settings:
|
||||||
|
// Add the settings list to the route stack to improve the back button
|
||||||
|
if (state.prefState.isMobile) {
|
||||||
|
viewEntitiesByType(entityType: EntityType.settings);
|
||||||
|
}
|
||||||
store.dispatch(ViewSettings(
|
store.dispatch(ViewSettings(
|
||||||
client: client,
|
client: client,
|
||||||
section: kSettingsLocalization,
|
section: kSettingsLocalization,
|
||||||
|
|
|
||||||
|
|
@ -225,6 +225,7 @@ void handleGroupAction(
|
||||||
}
|
}
|
||||||
|
|
||||||
final store = StoreProvider.of<AppState>(context);
|
final store = StoreProvider.of<AppState>(context);
|
||||||
|
final state = store.state;
|
||||||
final localization = AppLocalization.of(context);
|
final localization = AppLocalization.of(context);
|
||||||
final group = groups.first;
|
final group = groups.first;
|
||||||
final groupIds = groups.map((group) => group.id).toList();
|
final groupIds = groups.map((group) => group.id).toList();
|
||||||
|
|
@ -234,6 +235,10 @@ void handleGroupAction(
|
||||||
editEntity(entity: group);
|
editEntity(entity: group);
|
||||||
break;
|
break;
|
||||||
case EntityAction.settings:
|
case EntityAction.settings:
|
||||||
|
// Add the settings list to the route stack to improve the back button
|
||||||
|
if (state.prefState.isMobile) {
|
||||||
|
viewEntitiesByType(entityType: EntityType.settings);
|
||||||
|
}
|
||||||
store.dispatch(ViewSettings(
|
store.dispatch(ViewSettings(
|
||||||
group: group,
|
group: group,
|
||||||
section: kSettingsCompanyDetails,
|
section: kSettingsCompanyDetails,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue