Skip to content

Commit ff52455

Browse files
authored
Merge pull request #122 from questdb/fix/proxy-title
Don't render Proxy title if PDC is not available
2 parents 8933779 + e01d994 commit ff52455

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

src/views/QuestDBConfigEditor.tsx

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -277,22 +277,24 @@ export const ConfigEditor: React.FC<Props> = (props) => {
277277
</Field>
278278
</ConfigSection>
279279

280-
<Divider />
280+
{config.featureToggles['secureSocksDSProxyEnabled'] && gte(config.buildInfo.version, '10.0.0') && (
281+
<>
282+
<Divider />
281283

282-
<ConfigSection title="Proxy">
283-
{config.featureToggles['secureSocksDSProxyEnabled'] && gte(config.buildInfo.version, '10.0.0') && (
284-
<Field
285-
label={Components.ConfigEditor.SecureSocksProxy.label}
286-
description={Components.ConfigEditor.SecureSocksProxy.tooltip}
287-
>
288-
<Switch
289-
className="gf-form"
290-
value={jsonData.enableSecureSocksProxy || false}
291-
onChange={(e) => onSwitchToggle('enableSecureSocksProxy', e.currentTarget.checked)}
292-
/>
293-
</Field>
294-
)}
295-
</ConfigSection>
284+
<ConfigSection title="Proxy">
285+
<Field
286+
label={Components.ConfigEditor.SecureSocksProxy.label}
287+
description={Components.ConfigEditor.SecureSocksProxy.tooltip}
288+
>
289+
<Switch
290+
className="gf-form"
291+
value={jsonData.enableSecureSocksProxy || false}
292+
onChange={(e) => onSwitchToggle('enableSecureSocksProxy', e.currentTarget.checked)}
293+
/>
294+
</Field>
295+
</ConfigSection>
296+
</>
297+
)}
296298

297299
<Divider />
298300
<ConfigSection title="TLS / SSL Settings">

0 commit comments

Comments
 (0)