mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 18:26:00 +00:00
UX fix
This commit is contained in:
@@ -33,6 +33,7 @@
|
|||||||
import { findEngineDriver } from 'dbgate-tools';
|
import { findEngineDriver } from 'dbgate-tools';
|
||||||
import { extensions } from '../stores';
|
import { extensions } from '../stores';
|
||||||
import newQuery from '../query/newQuery';
|
import newQuery from '../query/newQuery';
|
||||||
|
import runCommand from '../commands/runCommand';
|
||||||
|
|
||||||
export let conid;
|
export let conid;
|
||||||
export let database;
|
export let database;
|
||||||
@@ -97,7 +98,16 @@
|
|||||||
message={`Database ${database} is empty or structure is not loaded, press Refresh button to reload structure`}
|
message={`Database ${database} is empty or structure is not loaded, press Refresh button to reload structure`}
|
||||||
icon="img alert"
|
icon="img alert"
|
||||||
/>
|
/>
|
||||||
|
<div class="m-1" />
|
||||||
<InlineButton on:click={handleRefreshDatabase}>Refresh</InlineButton>
|
<InlineButton on:click={handleRefreshDatabase}>Refresh</InlineButton>
|
||||||
|
{#if !driver?.dialect?.nosql}
|
||||||
|
<div class="m-1" />
|
||||||
|
<InlineButton on:click={() => runCommand('new.table')}>New table</InlineButton>
|
||||||
|
{/if}
|
||||||
|
{#if driver?.dialect?.nosql}
|
||||||
|
<div class="m-1" />
|
||||||
|
<InlineButton on:click={() => runCommand('new.collection')}>New collection</InlineButton>
|
||||||
|
{/if}
|
||||||
</WidgetsInnerContainer>
|
</WidgetsInnerContainer>
|
||||||
{:else}
|
{:else}
|
||||||
<SearchBoxWrapper>
|
<SearchBoxWrapper>
|
||||||
|
|||||||
Reference in New Issue
Block a user