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';
|
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}>
|
return <Grid item xs={12}>
|
||||||
<Stack spacing={1} style={style}>
|
<Stack spacing={1} style={style}>
|
||||||
<InputLabel htmlFor={name}>{label}</InputLabel>
|
<InputLabel htmlFor={name}>{label}</InputLabel>
|
||||||
|
@ -36,6 +36,7 @@ export const CosmosInputText = ({ name, style, type, placeholder, onChange, labe
|
||||||
type={type ? type : 'text'}
|
type={type ? type : 'text'}
|
||||||
value={formik.values[name]}
|
value={formik.values[name]}
|
||||||
name={name}
|
name={name}
|
||||||
|
multiline={multiline}
|
||||||
onBlur={formik.handleBlur}
|
onBlur={formik.handleBlur}
|
||||||
onChange={(...e) => {
|
onChange={(...e) => {
|
||||||
if (onChange) {
|
if (onChange) {
|
||||||
|
|
|
@ -260,12 +260,14 @@ const NewInstall = () => {
|
||||||
{formik.values.HTTPSCertificateMode === "PROVIDED" && (
|
{formik.values.HTTPSCertificateMode === "PROVIDED" && (
|
||||||
<>
|
<>
|
||||||
<CosmosInputText
|
<CosmosInputText
|
||||||
|
multiline
|
||||||
name="TLSKey"
|
name="TLSKey"
|
||||||
label="Private Certificate"
|
label="Private Certificate"
|
||||||
placeholder="-----BEGIN CERTIFICATE-----\nMIIEowIBwIBAA...."
|
placeholder="-----BEGIN CERTIFICATE-----\nMIIEowIBwIBAA...."
|
||||||
formik={formik}
|
formik={formik}
|
||||||
/>
|
/>
|
||||||
<CosmosInputText
|
<CosmosInputText
|
||||||
|
multiline
|
||||||
name="TLSCert"
|
name="TLSCert"
|
||||||
label="Public Certificate"
|
label="Public Certificate"
|
||||||
placeholder="-----BEGIN RSA PRIVATE KEY-----\nQCdYIUkYi...."
|
placeholder="-----BEGIN RSA PRIVATE KEY-----\nQCdYIUkYi...."
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "cosmos-server",
|
"name": "cosmos-server",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "test-server.js",
|
"main": "test-server.js",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
|
Loading…
Reference in a new issue