From 23bb1b541e78846d5978153fd8d9bb4f01cec72b Mon Sep 17 00:00:00 2001 From: hugocasa Date: Mon, 11 May 2026 12:01:13 +0200 Subject: [PATCH] fix(frontend): mark Path dirty when folder picker changes selection (#9096) * fix(frontend): enable move button when only folder changes * fix(frontend): mark Path dirty when folder picker changes selection * fix(frontend): preserve script auto-derive for new items in Path dirty effect --- frontend/src/lib/components/Path.svelte | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/frontend/src/lib/components/Path.svelte b/frontend/src/lib/components/Path.svelte index 6e1244b05f..c35b5f1e81 100644 --- a/frontend/src/lib/components/Path.svelte +++ b/frontend/src/lib/components/Path.svelte @@ -355,6 +355,19 @@ !dirty && (dirty = true) } + $effect(() => { + if ( + path !== undefined && + path !== '' && + initialPath && + !initialPath.startsWith('tmp/') && + path !== initialPath && + !dirty + ) { + dirty = true + } + }) + const openSearchWithPrefilledText: (t?: string) => void = getContext( 'openSearchWithPrefilledText' )