Skip to main content
Sign in
Snippets Groups Projects
Commit d22b8976 authored by David Smadja's avatar David Smadja
Browse files

fixup! Add button and mecanism

parent ebb21e68
No related branches found
No related tags found
1 merge request!329Permettre d'ouvrir / fermer tous les paramètres
...@@ -46,6 +46,15 @@ ...@@ -46,6 +46,15 @@
}: Props = $props() }: Props = $props()
let forceOpenChildrenParameters: boolean = $state(false) let forceOpenChildrenParameters: boolean = $state(false)
let previousOpenAllParameters = $state(openAllParameters)
$effect(() => {
if (openAllParameters !== previousOpenAllParameters) {
forceOpenChildrenParameters = false
previousOpenAllParameters = openAllParameters
}
})
let openChildrenParameters = $derived( let openChildrenParameters = $derived(
forceOpenChildrenParameters forceOpenChildrenParameters
? true ? true
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment