mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 23:13:57 +00:00
fix search connections
This commit is contained in:
@@ -70,7 +70,7 @@
|
|||||||
{filter}
|
{filter}
|
||||||
{passProps}
|
{passProps}
|
||||||
{isExpandedBySearch}
|
{isExpandedBySearch}
|
||||||
isExpandedOnlyBySearch={isExpandedBySearch && !isExpanded}
|
{isExpanded}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -11,8 +11,10 @@
|
|||||||
export let data;
|
export let data;
|
||||||
export let passProps;
|
export let passProps;
|
||||||
|
|
||||||
export let isExpandedOnlyBySearch;
|
|
||||||
export let isExpandedBySearch;
|
export let isExpandedBySearch;
|
||||||
|
export let isExpanded;
|
||||||
|
|
||||||
|
$: isExpandedOnlyBySearch = isExpandedBySearch && !isExpanded;
|
||||||
|
|
||||||
$: databases = useDatabaseList({ conid: isExpandedOnlyBySearch ? null : data._id });
|
$: databases = useDatabaseList({ conid: isExpandedOnlyBySearch ? null : data._id });
|
||||||
$: dbList = isExpandedOnlyBySearch ? getLocalStorage(`database_list_${data._id}`) || [] : $databases || [];
|
$: dbList = isExpandedOnlyBySearch ? getLocalStorage(`database_list_${data._id}`) || [] : $databases || [];
|
||||||
@@ -24,6 +26,6 @@
|
|||||||
list={_.sortBy(dbList, x => x.sortOrder ?? x.name).map(db => ({ ...db, connection: data }))}
|
list={_.sortBy(dbList, x => x.sortOrder ?? x.name).map(db => ({ ...db, connection: data }))}
|
||||||
module={databaseAppObject}
|
module={databaseAppObject}
|
||||||
{passProps}
|
{passProps}
|
||||||
{filter}
|
filter={isExpanded ? '' : filter}
|
||||||
{isExpandedBySearch}
|
{isExpandedBySearch}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user