mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 08:33:58 +00:00
fixes
This commit is contained in:
@@ -147,6 +147,12 @@ recentDatabases.subscribe(value => {
|
|||||||
});
|
});
|
||||||
export const getRecentDatabases = () => _.compact(recentDatabasesValue);
|
export const getRecentDatabases = () => _.compact(recentDatabasesValue);
|
||||||
|
|
||||||
|
let pinnedDatabasesValue = null;
|
||||||
|
pinnedDatabases.subscribe(value => {
|
||||||
|
pinnedDatabasesValue = value;
|
||||||
|
});
|
||||||
|
export const getPinnedDatabases = () => _.compact(pinnedDatabasesValue);
|
||||||
|
|
||||||
let currentDatabaseValue = null;
|
let currentDatabaseValue = null;
|
||||||
currentDatabase.subscribe(value => {
|
currentDatabase.subscribe(value => {
|
||||||
currentDatabaseValue = value;
|
currentDatabaseValue = value;
|
||||||
|
|||||||
@@ -24,11 +24,15 @@
|
|||||||
<ConnectionList />
|
<ConnectionList />
|
||||||
</WidgetColumnBarItem>
|
</WidgetColumnBarItem>
|
||||||
{/if}
|
{/if}
|
||||||
{#if $pinnedDatabases?.length > 0}
|
<WidgetColumnBarItem
|
||||||
<WidgetColumnBarItem title="Pinned" name="pinned" height="15%" storageName="pinnedItemsWidget">
|
title="Pinned"
|
||||||
<PinnedObjectsList />
|
name="pinned"
|
||||||
</WidgetColumnBarItem>
|
height="15%"
|
||||||
{/if}
|
storageName="pinnedItemsWidget"
|
||||||
|
skip={!$pinnedDatabases?.length}
|
||||||
|
>
|
||||||
|
<PinnedObjectsList />
|
||||||
|
</WidgetColumnBarItem>
|
||||||
<WidgetColumnBarItem
|
<WidgetColumnBarItem
|
||||||
title={driver?.dialect?.nosql ? 'Collections' : 'Tables, views, functions'}
|
title={driver?.dialect?.nosql ? 'Collections' : 'Tables, views, functions'}
|
||||||
name="dbObjects"
|
name="dbObjects"
|
||||||
|
|||||||
@@ -2,11 +2,17 @@
|
|||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import WidgetsInnerContainer from './WidgetsInnerContainer.svelte';
|
import WidgetsInnerContainer from './WidgetsInnerContainer.svelte';
|
||||||
import AppObjectList from '../appobj/AppObjectList.svelte';
|
import AppObjectList from '../appobj/AppObjectList.svelte';
|
||||||
import { pinnedDatabases } from '../stores';
|
import { pinnedDatabases } from '../stores';
|
||||||
import * as databaseAppObject from '../appobj/DatabaseAppObject.svelte';
|
import * as databaseAppObject from '../appobj/DatabaseAppObject.svelte';
|
||||||
|
import { useConnectionColorFactory } from '../utility/useConnectionColor';
|
||||||
|
|
||||||
|
const connectionColorFactory = useConnectionColorFactory(3);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<WidgetsInnerContainer>
|
<WidgetsInnerContainer>
|
||||||
<AppObjectList list={$pinnedDatabases} module={databaseAppObject} />
|
<AppObjectList
|
||||||
|
list={$pinnedDatabases}
|
||||||
|
module={databaseAppObject}
|
||||||
|
passProps={{ connectionColorFactory: $connectionColorFactory }}
|
||||||
|
/>
|
||||||
</WidgetsInnerContainer>
|
</WidgetsInnerContainer>
|
||||||
|
|||||||
Reference in New Issue
Block a user