mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 15:26:35 +00:00
Update ttl field label on ssh template modal
This commit is contained in:
@@ -12,14 +12,16 @@ import {
|
|||||||
ModalContent,
|
ModalContent,
|
||||||
Select,
|
Select,
|
||||||
SelectItem,
|
SelectItem,
|
||||||
Switch} from "@app/components/v2";
|
Switch
|
||||||
|
} from "@app/components/v2";
|
||||||
import { useOrganization } from "@app/context";
|
import { useOrganization } from "@app/context";
|
||||||
import {
|
import {
|
||||||
useCreateSshCertTemplate,
|
useCreateSshCertTemplate,
|
||||||
useGetSshCaById,
|
useGetSshCaById,
|
||||||
useGetSshCertTemplate,
|
useGetSshCertTemplate,
|
||||||
useListOrgSshCas,
|
useListOrgSshCas,
|
||||||
useUpdateSshCertTemplate} from "@app/hooks/api";
|
useUpdateSshCertTemplate
|
||||||
|
} from "@app/hooks/api";
|
||||||
import { UsePopUpState } from "@app/hooks/usePopUp";
|
import { UsePopUpState } from "@app/hooks/usePopUp";
|
||||||
|
|
||||||
const schema = z.object({
|
const schema = z.object({
|
||||||
@@ -248,7 +250,7 @@ export const SshCertificateTemplateModal = ({ popUp, handlePopUpToggle, sshCaId
|
|||||||
name="ttl"
|
name="ttl"
|
||||||
render={({ field, fieldState: { error } }) => (
|
render={({ field, fieldState: { error } }) => (
|
||||||
<FormControl
|
<FormControl
|
||||||
label="TTL"
|
label="Default TTL"
|
||||||
isError={Boolean(error)}
|
isError={Boolean(error)}
|
||||||
errorText={error?.message}
|
errorText={error?.message}
|
||||||
isRequired
|
isRequired
|
||||||
|
|||||||
Reference in New Issue
Block a user