mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 18:46:00 +00:00
fix search connections
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
{filter}
|
||||
{passProps}
|
||||
{isExpandedBySearch}
|
||||
isExpandedOnlyBySearch={isExpandedBySearch && !isExpanded}
|
||||
{isExpanded}
|
||||
/>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
@@ -11,8 +11,10 @@
|
||||
export let data;
|
||||
export let passProps;
|
||||
|
||||
export let isExpandedOnlyBySearch;
|
||||
export let isExpandedBySearch;
|
||||
export let isExpanded;
|
||||
|
||||
$: isExpandedOnlyBySearch = isExpandedBySearch && !isExpanded;
|
||||
|
||||
$: databases = useDatabaseList({ conid: isExpandedOnlyBySearch ? null : data._id });
|
||||
$: 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 }))}
|
||||
module={databaseAppObject}
|
||||
{passProps}
|
||||
{filter}
|
||||
filter={isExpanded ? '' : filter}
|
||||
{isExpandedBySearch}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user