view table list in database widget

This commit is contained in:
Jan Prochazka
2021-02-21 09:57:26 +01:00
parent a03261bfd4
commit 71bea87a7a
8 changed files with 63 additions and 13 deletions

View File

@@ -0,0 +1,20 @@
<script lang="ts">
import _ from 'lodash';
import { currentDatabase } from '../stores';
import AppObjectCore from './AppObjectCore.svelte';
export let data;
export let commonProps;
</script>
<AppObjectCore
{...commonProps}
{data}
title={data.name}
icon="img database"
isBold={_.get($currentDatabase, 'connection._id') == _.get(data.connection, '_id') &&
_.get($currentDatabase, 'name') == data.name}
on:click={() => ($currentDatabase = data)}
/>