From f1a67a2cc58b0118b8f4428b7bcd0a9f0eeb5a1c Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 3 Mar 2023 09:14:38 +0000 Subject: [PATCH] Remove add column button --- .../src/components/sheet/HeaderRow.svelte | 16 +--------------- .../src/components/sheet/Sheet.svelte | 3 --- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/packages/frontend-core/src/components/sheet/HeaderRow.svelte b/packages/frontend-core/src/components/sheet/HeaderRow.svelte index 4d24fdf98a..6e1e799ec3 100644 --- a/packages/frontend-core/src/components/sheet/HeaderRow.svelte +++ b/packages/frontend-core/src/components/sheet/HeaderRow.svelte @@ -5,7 +5,7 @@ import { getIconForField } from "./utils" import SheetScrollWrapper from "./SheetScrollWrapper.svelte" - const { visibleColumns, reorder, dispatch } = getContext("spreadsheet") + const { visibleColumns, reorder } = getContext("spreadsheet")
@@ -32,11 +32,6 @@ {/each}
-
dispatch("add-column")}> - - - -
diff --git a/packages/frontend-core/src/components/sheet/Sheet.svelte b/packages/frontend-core/src/components/sheet/Sheet.svelte index a61474501a..c9fcb09f0d 100644 --- a/packages/frontend-core/src/components/sheet/Sheet.svelte +++ b/packages/frontend-core/src/components/sheet/Sheet.svelte @@ -18,7 +18,6 @@ export let API export let tableId - export let allowAddColumns = true export let allowAddRows = true export let allowSelectRows = true export let filter @@ -33,7 +32,6 @@ tableId, filter, allowAddRows, - allowAddColumns, allowSelectRows, }) @@ -58,7 +56,6 @@ $: config.set({ tableId, filter, - allowAddColumns, allowAddRows, allowSelectRows, })