Not able to set client settings in mobile app

This commit is contained in:
Hillel Coren 2023-02-28 08:43:40 +02:00
parent f41ccf2dba
commit beb14f4591
2 changed files with 8 additions and 10 deletions

View File

@ -368,13 +368,12 @@ void handleClientAction(
}
break;
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(
company: store.state.company,
user: store.state.user,
client: client,
section: kSettingsLocalization,
section: state.prefState.isDesktop ? kSettingsLocalization : null,
clearFilter: true,
));
break;
case EntityAction.newTask:

View File

@ -235,13 +235,12 @@ void handleGroupAction(
editEntity(entity: group);
break;
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(
company: store.state.company,
user: store.state.user,
group: group,
section: kSettingsCompanyDetails,
section: state.prefState.isDesktop ? kSettingsLocalization : null,
clearFilter: true,
));
break;
case EntityAction.newClient: