form works also for views

This commit is contained in:
Jan Prochazka
2023-01-22 18:26:49 +01:00
parent 11bb8faf91
commit 6fdb9cc5c9
2 changed files with 3 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ export class ViewGridDisplay extends GridDisplay {
) {
super(config, setConfig, cache, setCache, driver, serverVersion);
this.columns = this.getDisplayColumns(view);
this.formColumns = this.columns;
this.filterable = true;
this.sortable = true;
this.groupable = false;

View File

@@ -14,6 +14,7 @@ import ToolStripExportButton, { createQuickExportHandlerRef } from '../buttons/T
import DataGrid from '../datagrid/DataGrid.svelte';
import SqlDataGridCore from '../datagrid/SqlDataGridCore.svelte';
import SqlFormView from '../formview/SqlFormView.svelte';
import { getBoolSettingsValue } from '../settings/settingsTools';
import { extensions } from '../stores';
import { useConnectionInfo, useDatabaseServerVersion, useViewInfo } from '../utility/metadataLoaders';
@@ -66,6 +67,7 @@ import ToolStripExportButton, { createQuickExportHandlerRef } from '../buttons/T
setCache={cache.update}
focusOnVisible
gridCoreComponent={SqlDataGridCore}
formViewComponent={SqlFormView}
/>
<svelte:fragment slot="toolstrip">
<ToolStripCommandButton command="dataGrid.refresh" />