Postgres: Regroup config page for TLS related settings (#107686)

This commit is contained in:
Sriram
2025-07-07 12:30:19 +01:00
committed by GitHub
parent 6ce2fac2bb
commit 3b6784cfcf
@@ -153,7 +153,11 @@ export const PostgresConfigEditor = (props: DataSourcePluginOptionsEditorProps<P
onBlur={onUpdateDatasourceSecureJsonDataOption(props, 'password')} onBlur={onUpdateDatasourceSecureJsonDataOption(props, 'password')}
/> />
</Field> </Field>
</ConfigSection>
<Divider />
<ConfigSection title="TLS/SSL Auth Details" isCollapsible>
<Field <Field
label={ label={
<Label> <Label>
@@ -180,7 +184,6 @@ export const PostgresConfigEditor = (props: DataSourcePluginOptionsEditorProps<P
width={WIDTH_LONG} width={WIDTH_LONG}
/> />
</Field> </Field>
{options.jsonData.sslmode !== PostgresTLSModes.disable ? ( {options.jsonData.sslmode !== PostgresTLSModes.disable ? (
<Field <Field
label={ label={
@@ -217,12 +220,8 @@ export const PostgresConfigEditor = (props: DataSourcePluginOptionsEditorProps<P
/> />
</Field> </Field>
) : null} ) : null}
</ConfigSection> {jsonData.sslmode !== PostgresTLSModes.disable ? (
<>
{jsonData.sslmode !== PostgresTLSModes.disable ? (
<>
<Divider />
<ConfigSection title="TLS/SSL Auth Details">
{jsonData.tlsConfigurationMethod === PostgresTLSMethods.fileContent ? ( {jsonData.tlsConfigurationMethod === PostgresTLSMethods.fileContent ? (
<TLSSecretsConfig <TLSSecretsConfig
showCACert={ showCACert={
@@ -314,9 +313,9 @@ export const PostgresConfigEditor = (props: DataSourcePluginOptionsEditorProps<P
</Field> </Field>
</> </>
)} )}
</ConfigSection> </>
</> ) : null}
) : null} </ConfigSection>
<Divider /> <Divider />