From 6b1e6c61feb03cc383ad7ce8d2de0c2190249fbc Mon Sep 17 00:00:00 2001 From: Dean Date: Wed, 15 May 2024 17:20:50 +0100 Subject: [PATCH] Updating signature grid cell to use GridPopover --- .../grid/cells/SignatureCell.svelte | 78 +++++++++---------- 1 file changed, 38 insertions(+), 40 deletions(-) diff --git a/packages/frontend-core/src/components/grid/cells/SignatureCell.svelte b/packages/frontend-core/src/components/grid/cells/SignatureCell.svelte index eb14c8bfc6..3176f77f9f 100644 --- a/packages/frontend-core/src/components/grid/cells/SignatureCell.svelte +++ b/packages/frontend-core/src/components/grid/cells/SignatureCell.svelte @@ -2,6 +2,7 @@ import { onMount, getContext } from "svelte" import { SignatureModal } from "@budibase/frontend-core/src/components" import { CoreSignature, ActionButton } from "@budibase/bbui" + import GridPopover from "../overlays/GridPopover.svelte" export let schema export let value @@ -16,6 +17,7 @@ let isOpen = false let modal + let anchor $: editable = focused && !readonly $: { @@ -72,6 +74,7 @@ class="signature-cell" class:light={!$props?.darkMode} class:editable + bind:this={anchor} on:click={editable ? open : null} > {#if value?.url} @@ -89,35 +92,46 @@ /> {#if isOpen} -
- {#if value?.key} -
- -
- {:else} -
- { - modal.show() - }} - > - Add signature - -
- {/if} -
+ +
+ {#if value?.key} +
+ +
+ {:else} +
+ { + modal.show() + }} + > + Add signature + +
+ {/if} +
+
{/if}