Skip to content

Commit 3320243

Browse files
authored
feat(connect-form): Update ssl tab to use box select instead of select dropdown (#209)
1 parent 1b07cfd commit 3320243

File tree

1 file changed

+6
-5
lines changed
  • src/views/webview-app/components/connect-form/ssl-tab

1 file changed

+6
-5
lines changed

src/views/webview-app/components/connect-form/ssl-tab/ssl-tab.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import SSL_METHODS, {
1010
SSLMethodOptions
1111
} from '../../../connection-model/constants/ssl-methods';
1212
import FormGroup from '../../form/form-group';
13-
import FormItemSelect from '../../form/form-item-select';
13+
import RadioBoxGroup from '../../form/radio-box-group/radio-box-group';
1414
import SSLServerValidation from './ssl-server-validation';
1515
import SSLServerClientValidation from './ssl-server-client-validation';
1616

@@ -53,13 +53,14 @@ class SSLTab extends React.Component<StateProps & DispatchProps> {
5353

5454
return (
5555
<FormGroup id="sslMethod" separator>
56-
<FormItemSelect
56+
<RadioBoxGroup
5757
label="SSL"
5858
name="sslMethod"
59-
options={SSLMethodOptions.map((methodOption) => ({
60-
[`${methodOption.id}`]: methodOption.title
59+
options={SSLMethodOptions.map((sslMethodOption) => ({
60+
label: sslMethodOption.title,
61+
value: sslMethodOption.id
6162
}))}
62-
changeHandler={this.onSSLMethodChanged}
63+
onChange={this.onSSLMethodChanged}
6364
value={sslMethod}
6465
/>
6566
{this.renderSSLMethod()}

0 commit comments

Comments
 (0)