This commit is contained in:
Jan Prochazka 2021-12-05 22:38:15 +01:00
parent b448de190d
commit 83a40db2da

View File

@ -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>