From 6c29fbd5089e8c41d0302d6c3c9c83323ecbe5b1 Mon Sep 17 00:00:00 2001 From: Dnreikronos Date: Mon, 29 Jun 2026 16:15:03 -0300 Subject: [PATCH] Move duplicate action into editor menu --- .../components/pipelines/list/Actions.svelte | 31 ++++++++----------- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/js-packages/web-console/src/lib/components/pipelines/list/Actions.svelte b/js-packages/web-console/src/lib/components/pipelines/list/Actions.svelte index 448a2251f97..9d7e9af1d40 100644 --- a/js-packages/web-console/src/lib/components/pipelines/list/Actions.svelte +++ b/js-packages/web-console/src/lib/components/pipelines/list/Actions.svelte @@ -125,7 +125,6 @@ groups related actions into multi-action dropdowns when multiple options are ava _stop, _multiStop, _multiStart, - _duplicate, _more, _spacer_short, _spacer_long, @@ -309,7 +308,7 @@ groups related actions into multi-action dropdowns when multiple options are ava const active = $derived.by(() => { const rawActions = getRawActions(pipeline.current.status) // Group actions into dropdowns - return [...processActionsForDropdowns(rawActions), '_duplicate' as const] + return processActionsForDropdowns(rawActions) }) function processActionsForDropdowns( @@ -673,6 +672,18 @@ groups related actions into multi-action dropdowns when multiple options are ava transition:slide={{ duration: 100 }} class="bg-white-dark absolute right-0 z-30 mt-2 flex w-44 flex-col justify-stretch rounded shadow-md" > + - - {#if unsavedChanges} - Save the program before duplicating. - {:else} - {duplicatePipelineTooltip} - {/if} - -{/snippet} {#snippet start({ text, action,