From 2199a491266146ce58b34e4e6d1176d53952be18 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Mon, 8 Jul 2024 15:02:46 +0200 Subject: [PATCH] editable connection --- packages/web/src/datagrid/DataGridCore.svelte | 2 ++ packages/web/src/tabs/ConnectionTab.svelte | 15 +++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/packages/web/src/datagrid/DataGridCore.svelte b/packages/web/src/datagrid/DataGridCore.svelte index 9ef26293..da489ae4 100644 --- a/packages/web/src/datagrid/DataGridCore.svelte +++ b/packages/web/src/datagrid/DataGridCore.svelte @@ -1119,6 +1119,8 @@ column, value: rowData && rowData[column], engine: display?.driver, + condition: display?.getChangeSetCondition(rowData), + insertedRowIndex: grider?.getInsertedRowIndex(row), }; }) .filter(x => x.column); diff --git a/packages/web/src/tabs/ConnectionTab.svelte b/packages/web/src/tabs/ConnectionTab.svelte index d17e3fe4..653342af 100644 --- a/packages/web/src/tabs/ConnectionTab.svelte +++ b/packages/web/src/tabs/ConnectionTab.svelte @@ -36,16 +36,19 @@ export let connection; export let tabid; export let conid; + export let connectionStore = undefined; let isTesting; let sqlConnectResult; - const values = writable( - connection || { - server: getCurrentConfig().isDocker ? 'dockerhost' : 'localhost', - engine: '', - } - ); + const values = + connectionStore || + writable( + connection || { + server: getCurrentConfig().isDocker ? 'dockerhost' : 'localhost', + engine: '', + } + ); // $: console.log('ConnectionTab.$values', $values); // $: console.log('ConnectionTab.driver', driver);