mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 17:46:00 +00:00
fixed loading keys in redis
This commit is contained in:
@@ -17,11 +17,24 @@
|
||||
export let model: DbKeysTreeModel;
|
||||
export let changeModel: DbKeysChangeModelFunction;
|
||||
|
||||
export let parentRoots = [];
|
||||
|
||||
$: items = model.childrenByKey[root] ?? [];
|
||||
</script>
|
||||
|
||||
{#each items as item}
|
||||
<DbKeysTreeNode {conid} {database} {root} {connection} {item} {filter} {indentLevel} {model} {changeModel} />
|
||||
<DbKeysTreeNode
|
||||
{conid}
|
||||
{database}
|
||||
{root}
|
||||
{connection}
|
||||
{item}
|
||||
{filter}
|
||||
{indentLevel}
|
||||
{model}
|
||||
{changeModel}
|
||||
parentRoots={[...parentRoots, root]}
|
||||
/>
|
||||
{/each}
|
||||
|
||||
{#if model.dirsByKey[root]?.shouldLoadNext}
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
export let item;
|
||||
export let indentLevel = 0;
|
||||
export let filter;
|
||||
export let parentRoots = [];
|
||||
|
||||
export let model: DbKeysTreeModel;
|
||||
export let changeModel: DbKeysChangeModelFunction;
|
||||
@@ -179,7 +180,7 @@
|
||||
{item.text}
|
||||
</div> -->
|
||||
|
||||
{#if isExpanded}
|
||||
{#if isExpanded && !parentRoots.includes(item.root)}
|
||||
<DbKeysSubTree
|
||||
{conid}
|
||||
{database}
|
||||
@@ -189,5 +190,6 @@
|
||||
{filter}
|
||||
{model}
|
||||
{changeModel}
|
||||
{parentRoots}
|
||||
/>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user