v0.1.3 Fix bug certificate upload
This commit is contained in:
parent
4cc41b27ee
commit
13ed1c5cc2
|
@ -27,7 +27,7 @@ import { strengthColor, strengthIndicator } from '../../../utils/password-streng
|
|||
|
||||
import { EyeOutlined, EyeInvisibleOutlined } from '@ant-design/icons';
|
||||
|
||||
export const CosmosInputText = ({ name, style, type, placeholder, onChange, label, formik }) => {
|
||||
export const CosmosInputText = ({ name, style, multiline, type, placeholder, onChange, label, formik }) => {
|
||||
return <Grid item xs={12}>
|
||||
<Stack spacing={1} style={style}>
|
||||
<InputLabel htmlFor={name}>{label}</InputLabel>
|
||||
|
@ -36,6 +36,7 @@ export const CosmosInputText = ({ name, style, type, placeholder, onChange, labe
|
|||
type={type ? type : 'text'}
|
||||
value={formik.values[name]}
|
||||
name={name}
|
||||
multiline={multiline}
|
||||
onBlur={formik.handleBlur}
|
||||
onChange={(...e) => {
|
||||
if (onChange) {
|
||||
|
|
|
@ -260,12 +260,14 @@ const NewInstall = () => {
|
|||
{formik.values.HTTPSCertificateMode === "PROVIDED" && (
|
||||
<>
|
||||
<CosmosInputText
|
||||
multiline
|
||||
name="TLSKey"
|
||||
label="Private Certificate"
|
||||
placeholder="-----BEGIN CERTIFICATE-----\nMIIEowIBwIBAA...."
|
||||
formik={formik}
|
||||
/>
|
||||
<CosmosInputText
|
||||
multiline
|
||||
name="TLSCert"
|
||||
label="Public Certificate"
|
||||
placeholder="-----BEGIN RSA PRIVATE KEY-----\nQCdYIUkYi...."
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "cosmos-server",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"description": "",
|
||||
"main": "test-server.js",
|
||||
"bugs": {
|
||||
|
|
Loading…
Reference in a new issue