v0.1.3 Fix bug certificate upload

This commit is contained in:
Yann Stepienik 2023-04-01 15:57:35 +01:00
parent 4cc41b27ee
commit 13ed1c5cc2
3 changed files with 5 additions and 2 deletions

View file

@ -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) {

View file

@ -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...."

View file

@ -1,6 +1,6 @@
{
"name": "cosmos-server",
"version": "0.1.2",
"version": "0.1.3",
"description": "",
"main": "test-server.js",
"bugs": {