shuashuai commented on code in PR #1244:
URL: https://github.com/apache/answer/pull/1244#discussion_r1945870725
##########
ui/src/pages/Install/components/SecondStep/index.tsx:
##########
@@ -183,6 +191,35 @@ const Index: FC<Props> = ({ visible, data, changeCallback,
nextCallback }) => {
<Form.Control.Feedback type="invalid">
{data.db_password.errorMsg}
</Form.Control.Feedback>
+ <div className='conditional-checkbox'>
+ <label htmlFor='sslMode' className='switch switch-default'>
+ SSL Mode On
+ </label>
+ <input
+ id='sslMode'
+ type='checkbox'
+ checked={checked}
+ onChange={handleChange}
+ />
+
+ {/* Inline conditional if checked state is `true` will show
the div, otherwise, it won't */}
+
+ {checked && (
+ <div
+ number-input
+ id='sslmodeOptionsDropdown'
+ className='form-group col-lg-2 col-md-4 col-sm-8'
+ >
+ <label htmlFor ='sslmodeOptions'>
+ <span className='requiredAsterisk' />
+ </label>
+ <select id='sslmode' className='form-control'>
+ <option>require</option>
+ <option>verify-ca</option>
+ </select>
+ </div>
+ )}
+ </div>
</Form.Group>
Review Comment:
1. Our UI uses bootstrap and react-bootstrap. Please adjust the UI to keep
it consistent.

2. All copywriting in the project needs to be processed using i18n. You can
refer to the existing usage in the project.
3. This feature should be displayed only when selecting PostgreSQL.
After the functions are completed, you can test your own advancedness,
including UI and functions.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]