From 8d21345d554633214d31b7e75e23daec0225c5fe Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 25 Apr 2023 09:22:30 +0100 Subject: [PATCH] Add sticky columns as a permanent, disabled option in hide columns buttons --- .../src/components/grid/controls/HideColumnsButton.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/frontend-core/src/components/grid/controls/HideColumnsButton.svelte b/packages/frontend-core/src/components/grid/controls/HideColumnsButton.svelte index 7d7c4664b6..1d5db3691b 100644 --- a/packages/frontend-core/src/components/grid/controls/HideColumnsButton.svelte +++ b/packages/frontend-core/src/components/grid/controls/HideColumnsButton.svelte @@ -2,7 +2,7 @@ import { getContext } from "svelte" import { ActionButton, Popover, Toggle } from "@budibase/bbui" - const { columns } = getContext("grid") + const { columns, stickyColumn } = getContext("grid") let open = false let anchor @@ -55,6 +55,10 @@
+ {#if $stickyColumn} + + {$stickyColumn.name} + {/if} {#each $columns as column}