mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
pin fix
This commit is contained in:
parent
b448de190d
commit
83a40db2da
@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { findEngineDriver } from 'dbgate-tools';
|
||||
import { currentDatabase, extensions, pinnedDatabases } from '../stores';
|
||||
import { currentDatabase, extensions, pinnedDatabases, pinnedTables } from '../stores';
|
||||
import { useConfig, useConnectionInfo } from '../utility/metadataLoaders';
|
||||
|
||||
import ConnectionList from './ConnectionList.svelte';
|
||||
@ -29,7 +29,8 @@
|
||||
name="pinned"
|
||||
height="15%"
|
||||
storageName="pinnedItemsWidget"
|
||||
skip={!$pinnedDatabases?.length}
|
||||
skip={!$pinnedDatabases?.length &&
|
||||
!$pinnedTables.some(x => x.conid == conid && x.database == $currentDatabase?.name)}
|
||||
>
|
||||
<PinnedObjectsList />
|
||||
</WidgetColumnBarItem>
|
||||
|
Loading…
Reference in New Issue
Block a user