mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-18 15:04:59 +00:00
Resolve PR issues
This commit is contained in:
+14
-2
@@ -4,6 +4,7 @@ import {
|
||||
faAnchorLock,
|
||||
faArrowLeft,
|
||||
faBook,
|
||||
faCertificate,
|
||||
faCog,
|
||||
faKey,
|
||||
faLock,
|
||||
@@ -13,8 +14,7 @@ import {
|
||||
faShield,
|
||||
faTags,
|
||||
faUser,
|
||||
faUsers
|
||||
} from "@fortawesome/free-solid-svg-icons";
|
||||
faUsers} from "@fortawesome/free-solid-svg-icons";
|
||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
|
||||
@@ -117,6 +117,18 @@ const SINGLE_PERMISSION_LIST = [
|
||||
subtitle: "IP allowlist management control",
|
||||
icon: faNetworkWired,
|
||||
formName: "ip-allowlist"
|
||||
},
|
||||
{
|
||||
title: "Certificate Authorities",
|
||||
subtitle: "CA management control",
|
||||
icon: faCertificate,
|
||||
formName: "certificate-authorities"
|
||||
},
|
||||
{
|
||||
title: "Certificates",
|
||||
subtitle: "Certificate management control",
|
||||
icon: faCertificate,
|
||||
formName: "certificates"
|
||||
}
|
||||
] as const;
|
||||
|
||||
|
||||
+2
@@ -48,6 +48,8 @@ export const formSchema = z.object({
|
||||
tags: generalPermissionSchema,
|
||||
"audit-logs": generalPermissionSchema,
|
||||
"ip-allowlist": generalPermissionSchema,
|
||||
"certificate-authorities": generalPermissionSchema,
|
||||
certificates: generalPermissionSchema,
|
||||
// akhilmhdh: refactor all keys like below
|
||||
[ProjectPermissionSub.SecretApproval]: generalPermissionSchema,
|
||||
workspace: z
|
||||
|
||||
+2
@@ -25,6 +25,8 @@ type Props = {
|
||||
| "audit-logs"
|
||||
| "ip-allowlist"
|
||||
| "identity"
|
||||
| "certificate-authorities"
|
||||
| "certificates"
|
||||
| ProjectPermissionSub.SecretApproval;
|
||||
isNonEditable?: boolean;
|
||||
setValue: UseFormSetValue<TFormSchema>;
|
||||
|
||||
Reference in New Issue
Block a user