Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow customizing CA ID while importing/creating new CAs #45

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/views/CAs/CAImporter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const CAImporter: React.FC<CAImporterProps> = ({ defaultEngine }) => {
</Grid>

<Grid xs={12} >
<FormTextField label="CA ID" name={"id"} control={control} disabled />
<FormTextField label="CA ID" name={"id"} control={control} />
</Grid>
<Grid xs={12} >
<CASelector
Expand Down
2 changes: 1 addition & 1 deletion src/views/CAs/CAImporterReadonly.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const CAReadonlyImporter: React.FC<CAReadonlyImporterProps> = () => {
return (
<Grid container spacing={2} sx={{ width: "100%" }}>
<Grid xs={12}>
<TextField label="CA ID" name="id" helperText="ID" value={caID} disabled />
<TextField label="CA ID" name="id" helperText="ID" value={caID} onChange={(e) => setCAID(e.target.value)} />
</Grid>
<Grid xs={12}>
<CertificateImporter onChange={(crt) => { setCrt(crt); }} />
Expand Down
2 changes: 1 addition & 1 deletion src/views/CAs/CreateCA.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const CreateCA: React.FC<CreateCAProps> = ({ defaultEngine }) => {
/>
</Grid>
<Grid xs={12}>
<FormTextField label="CA ID" control={control} name="id" helperText="ID" disabled />
<FormTextField label="CA ID" control={control} name="id" helperText="ID" />
</Grid>
<Grid xs={12}>
<FormTextField label="CA Name" control={control} name="subject.commonName" helperText="Common Name can not be empty" error={watchSubject.commonName === ""} />
Expand Down