Skip to content

Commit

Permalink
Minor changes to address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
saltiyazan committed Jun 24, 2024
1 parent 311fc67 commit 09c8e0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ui/src/app/certificate_requests/row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export default function Row({ id, csr, certificate, ActionMenuExpanded, setActio
<p><b>Country</b>: {csrObj.country || "N/A"}</p>
<p><b>Locality</b>: {csrObj.locality || "N/A"}</p>
<p><b>Email Address</b>: {csrObj.emailAddress || "N/A"}</p>
<p><b>Subject Alternative Name DNS</b>: {(csrObj.sansDns && csrObj.sansDns.length > 0) ? csrObj.sansDns.join(', ') : "N/A"}</p>
<p><b>Subject Alternative Name IP addresses</b>: {(csrObj.sansIp && csrObj.sansIp.length > 0) ? csrObj.sansIp.join(', ') : "N/A"}</p>
<p><b>Subject Alternative Name DNS</b>: {csrObj.sansDns && csrObj.sansDns.length > 0 ? csrObj.sansDns.join(', ') : "N/A"}</p>
<p><b>Subject Alternative Name IP addresses</b>: {csrObj.sansIp && csrObj.sansIp.length > 0 ? csrObj.sansIp.join(', ') : "N/A"}</p>
<p><b>Certificate request for a certificate authority</b>: {csrObj.is_ca ? "Yes" : "No"}</p>
</div>
</div>
Expand Down
6 changes: 1 addition & 5 deletions ui/src/app/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ function SubmitCSR({ csrText, onClickFunc }: { csrText: string, onClickFunc: any
extractCSR(csrText.trim())
csrIsValid = true
}
catch (e) {
if (e instanceof Error) {
console.log(e.message)
}
}
catch { }

const validationComponent = csrText == "" ? <></> : csrIsValid ? <div><i className="p-icon--success"></i>Valid CSR</div> : <div><i className="p-icon--error"></i>Invalid CSR</div>
const buttonComponent = csrIsValid ? <button className="p-button--positive u-float-right" name="submit" onClick={onClickFunc} >Submit</button> : <button className="p-button--positive u-float-right" name="submit" disabled={true} onClick={onClickFunc} >Submit</button>
Expand Down

0 comments on commit 09c8e0b

Please sign in to comment.