From 508cb6c58fd3551c5dd7fb341641fe748861ade4 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 17 Apr 2023 18:53:44 +0100 Subject: [PATCH] Add menu option to edit rows in modal --- .../sheet/overlays/MenuOverlay.svelte | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/packages/frontend-core/src/components/sheet/overlays/MenuOverlay.svelte b/packages/frontend-core/src/components/sheet/overlays/MenuOverlay.svelte index 32075dddeb..e4542def69 100644 --- a/packages/frontend-core/src/components/sheet/overlays/MenuOverlay.svelte +++ b/packages/frontend-core/src/components/sheet/overlays/MenuOverlay.svelte @@ -12,6 +12,7 @@ config, copiedCell, clipboard, + dispatch, } = getContext("sheet") $: style = makeStyle($menu) @@ -55,11 +56,12 @@ Paste dispatch("edit-row", $focusedRow)} + on:click={menu.actions.close} > - Delete row + Edit row in modal Duplicate row + + Delete row + {/if}