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
This commit is contained in:
hugocasa
2026-05-11 10:01:13 +00:00
committed by GitHub
parent da9e416b8e
commit 23bb1b541e
+13
View File
@@ -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'
)