From 4aa9cd0f72eb0e58952504cf02731a1457ef7808 Mon Sep 17 00:00:00 2001 From: lemmyMwaura Date: Sat, 27 Jul 2024 22:58:36 +0300 Subject: [PATCH] feat: also persist the state on delete --- frontend/src/views/Org/IdentityPage/IdentityPage.tsx | 2 +- frontend/src/views/Org/RolePage/RolePage.tsx | 2 +- frontend/src/views/Org/UserPage/UserPage.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/Org/IdentityPage/IdentityPage.tsx b/frontend/src/views/Org/IdentityPage/IdentityPage.tsx index aaf7d7398..7663a1775 100644 --- a/frontend/src/views/Org/IdentityPage/IdentityPage.tsx +++ b/frontend/src/views/Org/IdentityPage/IdentityPage.tsx @@ -76,7 +76,7 @@ export const IdentityPage = withPermission( }); handlePopUpClose("deleteIdentity"); - router.push(`/org/${orgId}/members`); + router.push(`/org/${orgId}/members?selectedTab=${TabSections.Identities}`); } catch (err) { console.error(err); const error = err as any; diff --git a/frontend/src/views/Org/RolePage/RolePage.tsx b/frontend/src/views/Org/RolePage/RolePage.tsx index b481434cf..d0488fcd4 100644 --- a/frontend/src/views/Org/RolePage/RolePage.tsx +++ b/frontend/src/views/Org/RolePage/RolePage.tsx @@ -76,7 +76,7 @@ export const RolePage = withPermission( type="submit" leftIcon={} onClick={() => { - router.push(`/org/${orgId}/members`); + router.push(`/org/${orgId}/members?selectedTab=${TabSections.Roles}`); }} className="mb-4" > diff --git a/frontend/src/views/Org/UserPage/UserPage.tsx b/frontend/src/views/Org/UserPage/UserPage.tsx index 4129af1aa..0ad5a5052 100644 --- a/frontend/src/views/Org/UserPage/UserPage.tsx +++ b/frontend/src/views/Org/UserPage/UserPage.tsx @@ -91,7 +91,7 @@ export const UserPage = withPermission( }); handlePopUpClose("removeMember"); - router.push(`/org/${orgId}/members`); + router.push(`/org/${orgId}/members?selectedTab=${TabSections.Member}`); } catch (err) { console.error(err); createNotification({