From beb14f4591d4c9b78b3c0fc4cf6a2810f0f4b8c4 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 28 Feb 2023 08:43:40 +0200 Subject: [PATCH] Not able to set client settings in mobile app --- lib/redux/client/client_actions.dart | 9 ++++----- lib/redux/group/group_actions.dart | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/lib/redux/client/client_actions.dart b/lib/redux/client/client_actions.dart index c08887ef9..3fde5a0aa 100644 --- a/lib/redux/client/client_actions.dart +++ b/lib/redux/client/client_actions.dart @@ -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: diff --git a/lib/redux/group/group_actions.dart b/lib/redux/group/group_actions.dart index abd1f7e8e..b7a01d387 100644 --- a/lib/redux/group/group_actions.dart +++ b/lib/redux/group/group_actions.dart @@ -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: