mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-12 07:29:35 +00:00
feat: resolved review feedbacks
This commit is contained in:
-1
@@ -75,7 +75,6 @@ export const IdentityModal = ({ popUp, handlePopUpToggle }: Props) => {
|
||||
control,
|
||||
name: "metadata"
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
const identity = popUp?.identity?.data as {
|
||||
identityId: string;
|
||||
|
||||
+2
-1
@@ -77,7 +77,8 @@ export const IdentityDetailsSection = ({ identityId, handlePopUpOpen }: Props) =
|
||||
name: data.identity.name,
|
||||
hasDeleteProtection: data.identity.hasDeleteProtection,
|
||||
role: data.role,
|
||||
customRole: data.customRole
|
||||
customRole: data.customRole,
|
||||
metadata: data.metadata
|
||||
});
|
||||
}}
|
||||
disabled={!isAllowed}
|
||||
|
||||
@@ -90,6 +90,15 @@ export const RoleModal = ({ popUp, handlePopUpToggle }: Props) => {
|
||||
});
|
||||
|
||||
handlePopUpToggle("role", false);
|
||||
if (slug) {
|
||||
navigate({
|
||||
to: `${getProjectBaseURL(currentProject.type)}/roles/$roleSlug` as const,
|
||||
params: {
|
||||
roleSlug: slug,
|
||||
projectId
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
// create
|
||||
const newRole = await createProjectRole({
|
||||
|
||||
Reference in New Issue
Block a user