mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 00:46:01 +00:00
SYNC: Merge pull request #15 from dbgate/feature/redis-cluster
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
import { getConnectionLabel } from 'dbgate-tools';
|
||||
import { _t } from '../translations';
|
||||
import FormFileInputField from '../forms/FormFileInputField.svelte';
|
||||
import FormClusterNodesField from '../forms/FormClusterNodesField.svelte';
|
||||
|
||||
export let getDatabaseList;
|
||||
export let currentConnection;
|
||||
@@ -122,6 +123,24 @@
|
||||
{/key}
|
||||
{/if}
|
||||
|
||||
{#if driver?.showConnectionField('clusterNodes', $values, showConnectionFieldArgs)}
|
||||
<FormClusterNodesField
|
||||
label="Cluster nodes"
|
||||
name="clusterNodes"
|
||||
disabled={isConnected || disabledFields.includes('clusterNodes')}
|
||||
data-testid="ConnectionDriverFields_clusterNodes"
|
||||
/>
|
||||
{/if}
|
||||
|
||||
{#if driver?.showConnectionField('autoDetectNatMap', $values, showConnectionFieldArgs)}
|
||||
<FormCheckboxField
|
||||
label="Auto detect NAT map (use for Redis Cluster in Docker network)"
|
||||
name="autoDetectNatMap"
|
||||
disabled={isConnected}
|
||||
data-testid="ConnectionDriverFields_autoDetectNatMap"
|
||||
/>
|
||||
{/if}
|
||||
|
||||
{#if driver?.showConnectionField('databaseFile', $values, showConnectionFieldArgs)}
|
||||
{#if electron && !driver?.dialect?.useServerDatabaseFile}
|
||||
<FormElectronFileSelector
|
||||
|
||||
Reference in New Issue
Block a user