option not to show FK hints

This commit is contained in:
Jan Prochazka
2021-04-18 10:55:18 +02:00
parent cacd6ae849
commit 0848008302
4 changed files with 22 additions and 7 deletions

View File

@@ -20,6 +20,7 @@
import ReferenceHeader from './ReferenceHeader.svelte';
import SqlDataGridCore from './SqlDataGridCore.svelte';
import SqlFormView from '../formview/SqlFormView.svelte';
import { getBoolSettingsValue } from '../settings/settingsTools';
export let conid;
export let database;
@@ -52,7 +53,8 @@
setConfig,
cache,
setCache,
$dbinfo
$dbinfo,
{ showHintColumns: getBoolSettingsValue('dataGrid.showHintColumns', true) }
)
: null;
@@ -64,7 +66,8 @@
setConfig,
cache,
setCache,
$dbinfo
$dbinfo,
{ showHintColumns: getBoolSettingsValue('dataGrid.showHintColumns', true) }
)
: null;

View File

@@ -26,7 +26,8 @@
<div class="heading">Data grid</div>
<FormCheckboxField name="dataGrid.hideLeftColumn" label="Hide left column by default" />
<FormTextField name="dataGrid.pageSize" label="Page size" defaultValue="100" />
<FormTextField name="dataGrid.pageSize" label="Page size (number of rows for incremental loading)" defaultValue="100" />
<FormCheckboxField name="dataGrid.showHintColumns" label="Show foreign key hints" defaultValue={true} />
<div slot="footer">
<FormSubmit value="OK" on:click={handleOk} />