mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-21 00:02:30 +00:00
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:
@@ -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'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user