Skip to content
Snippets Groups Projects
Commit ab94329a authored by Toufic Batache's avatar Toufic Batache
Browse files

Ne montrer la modale explicative "faux PLF" qu'une seule fois

parent c17600ab
No related branches found
No related tags found
1 merge request!158Bouton et modale simulation budget et autre évolution UI du budget
......@@ -12,6 +12,7 @@
import { page } from "$app/stores"
import CopyClipboard from "$lib/components/CopyClipboard.svelte"
import type { ParametricReform } from "$lib/reforms"
import { browser } from "$app/environment"
export let isOpen = false
......@@ -64,9 +65,14 @@
isOpen = false
}
$: if (browser) {
if (localStorage.getItem("hideWarningBillModal") === null) {
localStorage.setItem("hideWarningBillModal", "true")
setTimeout(() => {
isOpen = true
}, 10000) // Affiche la modale après 30 secondes
}, 10000) // Affiche la modale après 10 secondes
}
}
</script>
<Transition appear show={isOpen}>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment