From 17d3fb71e075c893698fb215e25a5a70f7068efe Mon Sep 17 00:00:00 2001 From: Alex Tideman Date: Mon, 18 Nov 2024 09:53:55 -0600 Subject: [PATCH] Add custom input selection if signal definitions exist to allow for manual input --- .../lines-and-dots/workflow-details.svelte | 5 +++-- .../signal-confirmation-modal.svelte | 15 ++++++++++++++- src/lib/layouts/workflow-header.svelte | 2 +- src/lib/pages/workflow-metadata.svelte | 2 -- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/lib/components/lines-and-dots/workflow-details.svelte b/src/lib/components/lines-and-dots/workflow-details.svelte index 4a46d0029..136d0f9a2 100644 --- a/src/lib/components/lines-and-dots/workflow-details.svelte +++ b/src/lib/components/lines-and-dots/workflow-details.svelte @@ -24,14 +24,13 @@
- @@ -63,6 +63,7 @@ relative: $relativeTime, }) : '-'} + badge class="order-3 lg:order-5 xl:order-6" /> = writable(defaultEncoding); let input = ''; @@ -36,6 +37,7 @@ open = false; name = ''; input = ''; + customSignal = false; $encoding = defaultEncoding; }; @@ -64,6 +66,11 @@ loading = false; } }; + + const handleCustom = () => { + customSignal = true; + name = ''; + };

{translate('workflows.signal-modal-title')}

- {#if signalDefinitions?.length > 0} + {#if signalDefinitions?.length > 0 && !customSignal} {:else} - + {translate('events.attribute-group.search-attributes')} -

{translate('common.memo')}

-