Not able to set client settings in mobile app

This commit is contained in:
Hillel Coren 2023-02-27 18:53:38 +02:00
parent 5673e2b99d
commit f41ccf2dba
2 changed files with 9 additions and 0 deletions

View File

@ -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,

View File

@ -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,