diff --git a/frontend/src/lib/components/FlowBuilder.svelte b/frontend/src/lib/components/FlowBuilder.svelte index fee32e81f3..ff15eba649 100644 --- a/frontend/src/lib/components/FlowBuilder.svelte +++ b/frontend/src/lib/components/FlowBuilder.svelte @@ -114,6 +114,16 @@ stepsState: Record } noInitial?: boolean + onSaveInitial?: ({ path, id }: { path: string; id: string }) => void + onSaveDraft?: ({ + path, + savedAtNewPath, + newFlow + }: { + path: string + savedAtNewPath: boolean + newFlow: boolean + }) => void } let { diff --git a/frontend/src/lib/components/common/drawer/Drawer.svelte b/frontend/src/lib/components/common/drawer/Drawer.svelte index 2c3134b9f4..f79acf5c68 100644 --- a/frontend/src/lib/components/common/drawer/Drawer.svelte +++ b/frontend/src/lib/components/common/drawer/Drawer.svelte @@ -21,7 +21,7 @@ } let { - open = $bindable(false), + open = $bindable(undefined), duration = 0.3, placement = 'right', size = '600px', @@ -35,6 +35,10 @@ children }: Props = $props() + if (open === undefined) { + open = false + } + let disposable: Disposable | undefined = $state(undefined) let durationMs = $derived(duration * 1000)