mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-12-21 11:30:11 +00:00
Add certificate model for http and dns
change is_ecc to boolean, its still stored as int in sqlite
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import {
|
||||
FormControl,
|
||||
FormErrorMessage,
|
||||
FormLabel,
|
||||
Switch,
|
||||
} from "@chakra-ui/react";
|
||||
import { Field } from "formik";
|
||||
import { intl } from "locale";
|
||||
|
||||
const fieldName = "isEcc";
|
||||
|
||||
function EccField() {
|
||||
return (
|
||||
<Field name={fieldName}>
|
||||
{({ field, form }: any) => (
|
||||
<FormControl
|
||||
isInvalid={form.errors[fieldName] && form.touched[fieldName]}>
|
||||
<FormLabel htmlFor={fieldName}>
|
||||
{intl.formatMessage({
|
||||
id: "is-ecc",
|
||||
})}
|
||||
</FormLabel>
|
||||
<Switch {...field} id={fieldName} />
|
||||
<FormErrorMessage>{form.errors[fieldName]}</FormErrorMessage>
|
||||
</FormControl>
|
||||
)}
|
||||
</Field>
|
||||
);
|
||||
}
|
||||
|
||||
export { EccField };
|
||||
Reference in New Issue
Block a user