mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 16:13:58 +00:00
SSH key file option available on web platforms #876
This commit is contained in:
@@ -60,7 +60,7 @@
|
|||||||
options={[
|
options={[
|
||||||
{ value: 'userPassword', label: 'Username & password' },
|
{ value: 'userPassword', label: 'Username & password' },
|
||||||
{ value: 'agent', label: 'SSH agent' },
|
{ value: 'agent', label: 'SSH agent' },
|
||||||
electron && { value: 'keyFile', label: 'Key file' },
|
{ value: 'keyFile', label: 'Key file' },
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
@@ -92,6 +92,7 @@
|
|||||||
{#if $values.sshMode == 'keyFile'}
|
{#if $values.sshMode == 'keyFile'}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-6 mr-1">
|
<div class="col-6 mr-1">
|
||||||
|
{#if electron}
|
||||||
<FormElectronFileSelector
|
<FormElectronFileSelector
|
||||||
label="Private key file"
|
label="Private key file"
|
||||||
name="sshKeyfile"
|
name="sshKeyfile"
|
||||||
@@ -99,6 +100,15 @@
|
|||||||
templateProps={{ noMargin: true }}
|
templateProps={{ noMargin: true }}
|
||||||
defaultFileName={$platformInfo?.defaultKeyfile}
|
defaultFileName={$platformInfo?.defaultKeyfile}
|
||||||
/>
|
/>
|
||||||
|
{:else}
|
||||||
|
<FormTextField
|
||||||
|
label="Private key file (path on server)"
|
||||||
|
name="sshKeyfile"
|
||||||
|
disabled={isConnected || !useSshTunnel}
|
||||||
|
templateProps={{ noMargin: true }}
|
||||||
|
placeholder={$platformInfo?.defaultKeyfile}
|
||||||
|
/>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<FormPasswordField
|
<FormPasswordField
|
||||||
|
|||||||
Reference in New Issue
Block a user