From 91c88bd92dda66ea26c3933833249e70609e4519 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Sun, 4 Apr 2021 21:38:53 +0200 Subject: [PATCH] handle no data, clear filter --- packages/datalib/src/TableFormViewDisplay.ts | 2 +- .../datagrid/CollectionDataGridCore.svelte | 28 +++++++++++-------- packages/web/src/datagrid/DataGrid.svelte | 1 + packages/web/src/datagrid/DataGridCore.svelte | 8 ++++++ .../web/src/tabs/CollectionDataTab.svelte | 1 + 5 files changed, 27 insertions(+), 13 deletions(-) diff --git a/packages/datalib/src/TableFormViewDisplay.ts b/packages/datalib/src/TableFormViewDisplay.ts index 538ea7dd..aef9a559 100644 --- a/packages/datalib/src/TableFormViewDisplay.ts +++ b/packages/datalib/src/TableFormViewDisplay.ts @@ -18,7 +18,7 @@ import stableStringify from 'json-stable-stringify'; import { ChangeSetFieldDefinition, ChangeSetRowDefinition } from './ChangeSet'; export class TableFormViewDisplay extends FormViewDisplay { - // use utility functions from GridDisplay and publish result in FromViewDisplat interface + // use utility functions from GridDisplay and publish result in FromViewDisplay interface private gridDisplay: TableGridDisplay; constructor( diff --git a/packages/web/src/datagrid/CollectionDataGridCore.svelte b/packages/web/src/datagrid/CollectionDataGridCore.svelte index a99b4879..90c26e36 100644 --- a/packages/web/src/datagrid/CollectionDataGridCore.svelte +++ b/packages/web/src/datagrid/CollectionDataGridCore.svelte @@ -1,11 +1,9 @@