mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 04:56:00 +00:00
table designer checkbox
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
import { tick } from 'svelte';
|
import { tick } from 'svelte';
|
||||||
import { createDatabaseObjectMenu } from '../appobj/DatabaseObjectAppObject.svelte';
|
import { createDatabaseObjectMenu } from '../appobj/DatabaseObjectAppObject.svelte';
|
||||||
|
import CheckboxField from '../forms/CheckboxField.svelte';
|
||||||
|
|
||||||
import FontIcon from '../icons/FontIcon.svelte';
|
import FontIcon from '../icons/FontIcon.svelte';
|
||||||
import InputTextModal from '../modals/InputTextModal.svelte';
|
import InputTextModal from '../modals/InputTextModal.svelte';
|
||||||
@@ -233,7 +234,13 @@
|
|||||||
use:contextMenu={settings?.canSelectColumns ? createMenu : '__no_menu'}
|
use:contextMenu={settings?.canSelectColumns ? createMenu : '__no_menu'}
|
||||||
style={getTableColorStyle($currentThemeDefinition, table)}
|
style={getTableColorStyle($currentThemeDefinition, table)}
|
||||||
>
|
>
|
||||||
<div>{alias || pureName}</div>
|
<div>
|
||||||
|
{#if settings?.canCheckTables}
|
||||||
|
<CheckboxField checked={false} />
|
||||||
|
{/if}
|
||||||
|
|
||||||
|
{alias || pureName}
|
||||||
|
</div>
|
||||||
{#if settings?.showTableCloseButton}
|
{#if settings?.showTableCloseButton}
|
||||||
<div class="close" on:click={() => onRemoveTable(table)}>
|
<div class="close" on:click={() => onRemoveTable(table)}>
|
||||||
<FontIcon icon="icon close" />
|
<FontIcon icon="icon close" />
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
appendTableSystemMenu: true,
|
appendTableSystemMenu: true,
|
||||||
customizeStyle: true,
|
customizeStyle: true,
|
||||||
allowDefineVirtualReferences: true,
|
allowDefineVirtualReferences: true,
|
||||||
|
canCheckTables: true,
|
||||||
}}
|
}}
|
||||||
referenceComponent={DiagramDesignerReference}
|
referenceComponent={DiagramDesignerReference}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
appendTableSystemMenu: false,
|
appendTableSystemMenu: false,
|
||||||
customizeStyle: false,
|
customizeStyle: false,
|
||||||
allowDefineVirtualReferences: false,
|
allowDefineVirtualReferences: false,
|
||||||
|
canCheckTables: true,
|
||||||
}}
|
}}
|
||||||
referenceComponent={QueryDesignerReference}
|
referenceComponent={QueryDesignerReference}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -75,6 +75,7 @@
|
|||||||
appendTableSystemMenu: false,
|
appendTableSystemMenu: false,
|
||||||
customizeStyle: false,
|
customizeStyle: false,
|
||||||
allowDefineVirtualReferences: false,
|
allowDefineVirtualReferences: false,
|
||||||
|
canCheckTables: true,
|
||||||
}}
|
}}
|
||||||
referenceComponent={QueryDesignerReference}
|
referenceComponent={QueryDesignerReference}
|
||||||
value={createDesignerModel(config, dbInfos)}
|
value={createDesignerModel(config, dbInfos)}
|
||||||
|
|||||||
Reference in New Issue
Block a user