mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
feat(plugin-connections): CB-1822 CB-1824 default values
This commit is contained in:
+2
-2
@@ -97,8 +97,8 @@ export class ConnectionSSHTabService extends Bootstrap {
|
||||
properties: {
|
||||
port: 22,
|
||||
host: '',
|
||||
aliveInterval: '',
|
||||
sshConnectTimeout: '',
|
||||
aliveInterval: '0',
|
||||
sshConnectTimeout: '10000',
|
||||
...initialConfig?.properties,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -79,6 +79,9 @@ export const SSH: TabContainerPanelComponent<IConnectionFormProps> = observer(fu
|
||||
const passwordSaved = initialConfig?.password === '' && initialConfig.authType === state.authType;
|
||||
const keySaved = initialConfig?.key === '';
|
||||
|
||||
const aliveIntervalLabel = translate('connections_network_handler_ssh_tunnel_advanced_settings_alive_interval');
|
||||
const connectTimeoutLabel = translate('connections_network_handler_ssh_tunnel_advanced_settings_connect_timeout');
|
||||
|
||||
const handleKeyUpload = async (event: React.ChangeEvent<HTMLInputElement>) => {
|
||||
const file = event.target.files?.[0];
|
||||
|
||||
@@ -223,24 +226,28 @@ export const SSH: TabContainerPanelComponent<IConnectionFormProps> = observer(fu
|
||||
>
|
||||
<Container gap>
|
||||
<InputField
|
||||
type='number'
|
||||
name='aliveInterval'
|
||||
state={state.properties}
|
||||
disabled={disabled || !enabled}
|
||||
readOnly={readonly}
|
||||
labelTooltip={aliveIntervalLabel}
|
||||
mod='surface'
|
||||
tiny
|
||||
>
|
||||
{translate('connections_network_handler_ssh_tunnel_advanced_settings_alive_interval')}
|
||||
{aliveIntervalLabel}
|
||||
</InputField>
|
||||
<InputField
|
||||
type='number'
|
||||
name='sshConnectTimeout'
|
||||
state={state.properties}
|
||||
disabled={disabled || !enabled}
|
||||
readOnly={readonly}
|
||||
labelTooltip={connectTimeoutLabel}
|
||||
mod='surface'
|
||||
tiny
|
||||
>
|
||||
{translate('connections_network_handler_ssh_tunnel_advanced_settings_connect_timeout')}
|
||||
{connectTimeoutLabel}
|
||||
</InputField>
|
||||
</Container>
|
||||
</Expandable>
|
||||
|
||||
Reference in New Issue
Block a user