fix: restore the save to workspace button on inline flow steps (#11469)

* fix: restore the save to workspace button on inline flow steps

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix: make the inline step save to workspace button icon only

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Guilhem
2026-10-01 18:25:25 +02:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 7f1beadf79
commit 88d0cd00e5
@@ -3,7 +3,6 @@
import { type FlowModule } from '$lib/gen'
import { createEventDispatcher, getContext } from 'svelte'
import { Pen, RefreshCcw, Save } from 'lucide-svelte'
import DropdownV2 from '../../DropdownV2.svelte'
import type { FlowEditorContext } from '../types'
import { sendUserToast } from '$lib/utils'
import type { FlowBuilderWhitelabelCustomUi } from '$lib/components/custom_ui'
@@ -83,16 +82,13 @@
tag={module.value.tag}
on:change={(e) => dispatch('tagChange', e.detail)}
/>
<DropdownV2
size="sm"
placement="bottom-end"
items={[
{
displayName: 'Save to workspace',
icon: Save,
action: () => dispatch('createScriptFromInlineScript')
}
]}
<Button
unifiedSize="sm"
variant="subtle"
startIcon={{ icon: Save }}
on:click={() => dispatch('createScriptFromInlineScript')}
iconOnly={true}
title="Save to workspace"
/>
{/if}
</div>