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; 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(
company: store.state.company,
user: store.state.user,
client: client, client: client,
section: kSettingsLocalization, section: state.prefState.isDesktop ? kSettingsLocalization : null,
clearFilter: true,
)); ));
break; break;
case EntityAction.newTask: case EntityAction.newTask:

View File

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