From bfab74d11f6bc6042e3fd769ef4eb9877d1a46a0 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Mon, 23 Nov 2020 16:17:09 +0000 Subject: [PATCH] make datagrid less janky --- packages/standard-components/package.json | 2 +- .../standard-components/src/DataGrid/Component.svelte | 10 +--------- packages/standard-components/src/index.js | 1 + 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/packages/standard-components/package.json b/packages/standard-components/package.json index f3c7272490..3f5273cf9e 100644 --- a/packages/standard-components/package.json +++ b/packages/standard-components/package.json @@ -36,7 +36,7 @@ "gitHead": "284cceb9b703c38566c6e6363c022f79a08d5691", "dependencies": { "@budibase/bbui": "^1.50.1", - "@budibase/svelte-ag-grid": "^0.0.13", + "@budibase/svelte-ag-grid": "^0.0.16", "@fortawesome/fontawesome-free": "^5.14.0", "@svelteschool/svelte-forms": "^0.7.0", "apexcharts": "^3.22.1", diff --git a/packages/standard-components/src/DataGrid/Component.svelte b/packages/standard-components/src/DataGrid/Component.svelte index 0d80990513..fb8ce2ebc4 100644 --- a/packages/standard-components/src/DataGrid/Component.svelte +++ b/packages/standard-components/src/DataGrid/Component.svelte @@ -140,12 +140,6 @@ } - - - -
{#if dataLoaded} {#if canAddDelete} @@ -153,9 +147,7 @@ {#if selectedRows.length > 0} - Delete - {selectedRows.length} - row(s) + Delete {selectedRows.length} row(s) {/if}
diff --git a/packages/standard-components/src/index.js b/packages/standard-components/src/index.js index 98bdc28028..3dec13e27b 100644 --- a/packages/standard-components/src/index.js +++ b/packages/standard-components/src/index.js @@ -1,4 +1,5 @@ import "@budibase/bbui/dist/bbui.css" +import "flatpickr/dist/flatpickr.css" export { default as container } from "./Container.svelte" export { default as text } from "./Text.svelte"