ui: Don't get stuck in on or off mode
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
nemunaire 2024-03-02 15:43:28 +01:00
parent 157fc04150
commit 124df3f256

View File

@ -40,6 +40,7 @@
reloadIsActiveAlarm().then((isActive) => {
if (isActive) {
setTimeout(reloadIsActiveAlarm, 10000);
setTimeout(reloadIsActiveAlarm, 25000);
}
})
}
@ -137,7 +138,7 @@
<button
class="btn btn-outline-warning"
title="Lancer le réveil"
on:click={() => { runAlarm(); reloadIsActiveAlarm(); }}
on:click={() => { runAlarm(); setTimeout(reloadIsActiveAlarm, 500); }}
>
<Icon name="play-circle" />
Lancer <span class="d-none d-lg-inline">le réveil</span>