@@ -41,6 +56,9 @@
{/if}
{#await nextAlarmP}
+
+ Loading...
+
{:then nextalarm}
Prochain réveil :
{#if nextalarm.getDay() == new Date().getDay() && nextalarm.getMonth() == new Date().getMonth() && nextalarm.getFullYear() == new Date().getFullYear()}
@@ -62,41 +80,59 @@
{/if}
{/await}
-
-
-
- Programmer un nouveau réveil
-
-
-
-
-
-
-
-
-
+ {#await isActiveP then isActive}
+ {#if !isActive}
+
+
+
+ Programmer un nouveau réveil
+
+
+
+
+
+ {:else}
+
+
+
+
+
+ {/if}
+ {/await}
diff --git a/ui/src/routes/settings/+page.svelte b/ui/src/routes/settings/+page.svelte
index a399883..71ae707 100644
--- a/ui/src/routes/settings/+page.svelte
+++ b/ui/src/routes/settings/+page.svelte
@@ -95,6 +95,20 @@