unical1988 commented on code in PR #1244:
URL: https://github.com/apache/answer/pull/1244#discussion_r1981700196
##########
ui/src/pages/Install/components/SecondStep/index.tsx:
##########
@@ -90,6 +111,49 @@ const Index: FC<Props> = ({ visible, data, changeCallback,
nextCallback }) => {
errorMsg: t('db_name.msg'),
};
}
+ if (db_type.value === 'postgres') {
+ if (!ssl_enabled.value) {
+ data.ssl_enabled = {
+ value: false,
+ isInvalid: false,
+ errorMsg: t('ssl_enabled.msg'),
+ };
+ } else if (!ssl_mode.value) {
+ data.ssl_mode = {
+ value: 'require',
+ isInvalid: false,
+ errorMsg: '',
+ };
Review Comment:
I have also added the re-initialization of the relevant variables when
switching `ssl_enabled `
--
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]