Skip to content

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

misc: removed enrollment options from CA page

Sheen Capadnganaa5b88ff0484
diff --git a/frontend/src/views/Project/CaPage/CaPage.tsx b/frontend/src/views/Project/CaPage/CaPage.tsx
index 7721ed2609..e0bdaeb64b 100644
--- a/frontend/src/views/Project/CaPage/CaPage.tsx
+++ b/frontend/src/views/Project/CaPage/CaPage.tsx
@@ -39,8 +39,7 @@ export const CaPage = withProjectPermission(
"ca",
"deleteCa",
"installCaCert",
- "renewCa",
- "enrollmentOptions"
+ "renewCa"
] as const);
const onRemoveCaSubmit = async (caIdToDelete: string) => {
diff --git a/frontend/src/views/Project/CaPage/components/CaDetailsSection.tsx b/frontend/src/views/Project/CaPage/components/CaDetailsSection.tsx
index eee00d0173..eb8ccf86f3 100644
--- a/frontend/src/views/Project/CaPage/components/CaDetailsSection.tsx
+++ b/frontend/src/views/Project/CaPage/components/CaDetailsSection.tsx
@@ -14,7 +14,7 @@ import { UsePopUpState } from "@app/hooks/usePopUp";
type Props = {
caId: string;
handlePopUpOpen: (
- popUpName: keyof UsePopUpState<["ca", "renewCa", "installCaCert", "enrollmentOptions"]>,
+ popUpName: keyof UsePopUpState<["ca", "renewCa", "installCaCert"]>,
data?: {}
) => void;
};
@@ -118,34 +118,19 @@ export const CaDetailsSection = ({ caId, handlePopUpOpen }: Props) => {
>
{(isAllowed) => {
return (
- <>
- <Button
- isDisabled={!isAllowed}
- className="mt-4 w-full"
- colorSchema="secondary"
- type="submit"
- onClick={() => {
- handlePopUpOpen("enrollmentOptions", {
- caId
- });
- }}
- >
- Enrollment Options
- </Button>
- <Button
- isDisabled={!isAllowed}
- className="mt-4 w-full"
- colorSchema="primary"
- type="submit"
- onClick={() => {
- handlePopUpOpen("renewCa", {
- caId
- });
- }}
- >
- Renew CA
- </Button>
- </>
+ <Button
+ isDisabled={!isAllowed}
+ className="mt-4 w-full"
+ colorSchema="primary"
+ type="submit"
+ onClick={() => {
+ handlePopUpOpen("renewCa", {
+ caId
+ });
+ }}
+ >
+ Renew CA
+ </Button>
);
}}
</ProjectPermissionCan>