mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 00:26:40 +00:00
misc: removed enrollment options from CA page
This commit is contained in:
@@ -39,8 +39,7 @@ export const CaPage = withProjectPermission(
|
|||||||
"ca",
|
"ca",
|
||||||
"deleteCa",
|
"deleteCa",
|
||||||
"installCaCert",
|
"installCaCert",
|
||||||
"renewCa",
|
"renewCa"
|
||||||
"enrollmentOptions"
|
|
||||||
] as const);
|
] as const);
|
||||||
|
|
||||||
const onRemoveCaSubmit = async (caIdToDelete: string) => {
|
const onRemoveCaSubmit = async (caIdToDelete: string) => {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import { UsePopUpState } from "@app/hooks/usePopUp";
|
|||||||
type Props = {
|
type Props = {
|
||||||
caId: string;
|
caId: string;
|
||||||
handlePopUpOpen: (
|
handlePopUpOpen: (
|
||||||
popUpName: keyof UsePopUpState<["ca", "renewCa", "installCaCert", "enrollmentOptions"]>,
|
popUpName: keyof UsePopUpState<["ca", "renewCa", "installCaCert"]>,
|
||||||
data?: {}
|
data?: {}
|
||||||
) => void;
|
) => void;
|
||||||
};
|
};
|
||||||
@@ -118,34 +118,19 @@ export const CaDetailsSection = ({ caId, handlePopUpOpen }: Props) => {
|
|||||||
>
|
>
|
||||||
{(isAllowed) => {
|
{(isAllowed) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<Button
|
||||||
<Button
|
isDisabled={!isAllowed}
|
||||||
isDisabled={!isAllowed}
|
className="mt-4 w-full"
|
||||||
className="mt-4 w-full"
|
colorSchema="primary"
|
||||||
colorSchema="secondary"
|
type="submit"
|
||||||
type="submit"
|
onClick={() => {
|
||||||
onClick={() => {
|
handlePopUpOpen("renewCa", {
|
||||||
handlePopUpOpen("enrollmentOptions", {
|
caId
|
||||||
caId
|
});
|
||||||
});
|
}}
|
||||||
}}
|
>
|
||||||
>
|
Renew CA
|
||||||
Enrollment Options
|
</Button>
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
isDisabled={!isAllowed}
|
|
||||||
className="mt-4 w-full"
|
|
||||||
colorSchema="primary"
|
|
||||||
type="submit"
|
|
||||||
onClick={() => {
|
|
||||||
handlePopUpOpen("renewCa", {
|
|
||||||
caId
|
|
||||||
});
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
Renew CA
|
|
||||||
</Button>
|
|
||||||
</>
|
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
</ProjectPermissionCan>
|
</ProjectPermissionCan>
|
||||||
|
|||||||
Reference in New Issue
Block a user