Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

feat: also persist the state on delete

lemmyMwaura4aa9cd0f72eb
diff --git a/frontend/src/views/Org/IdentityPage/IdentityPage.tsx b/frontend/src/views/Org/IdentityPage/IdentityPage.tsx
index aaf7d73987..7663a17751 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 b481434cf4..d0488fcd4c 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={<FontAwesomeIcon icon={faChevronLeft} />}
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 4129af1aab..0ad5a50521 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({