Skip to content
Snippets Groups Projects
Commit 695be6ff authored by Dorine Lambinet's avatar Dorine Lambinet Committed by David Smadja
Browse files

Retire fonction inutile et baisse la tonalité de la couleur

parent 8e8624af
Branches
Tags
1 merge request!329Permettre d'ouvrir / fermer tous les paramètres
......@@ -149,13 +149,6 @@
let openOtherParameters = $state(true)
let openAllParameters = $state(true)
let loadingAllParameters = $state(false)
async function toggleOpenAllParameters() {
loadingAllParameters = true
await new Promise((resolve) => setTimeout(resolve, 500))
openAllParameters = !openAllParameters
loadingAllParameters = false
}
</script>
{#if billDecomposition !== undefined || billVariable !== undefined}
......@@ -247,7 +240,7 @@
<button
aria-label="Ouvrir tout"
title="Ouvrir tout"
class="flex cursor-pointer items-center bg-white text-xs uppercase tracking-wide text-neutral-500 hover:text-le-gris-dispositif-dark"
class="flex cursor-pointer items-center bg-white text-xs uppercase tracking-wide text-neutral-400 hover:text-le-gris-dispositif-dark"
disabled={openAllParameters}
onclick={async () => {
loadingAllParameters = true
......@@ -264,7 +257,7 @@
<button
aria-label="Fermer tout"
title="Fermer tout"
class="flex cursor-pointer items-center bg-white text-xs uppercase tracking-wide text-neutral-500 hover:text-le-gris-dispositif-dark"
class="flex cursor-pointer items-center bg-white text-xs uppercase tracking-wide text-neutral-400 hover:text-le-gris-dispositif-dark"
disabled={!openAllParameters}
onclick={async () => {
loadingAllParameters = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment