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