ui: Don't get stuck in on or off mode
This commit is contained in:
parent
157fc04150
commit
124df3f256
@ -40,6 +40,7 @@
|
|||||||
reloadIsActiveAlarm().then((isActive) => {
|
reloadIsActiveAlarm().then((isActive) => {
|
||||||
if (isActive) {
|
if (isActive) {
|
||||||
setTimeout(reloadIsActiveAlarm, 10000);
|
setTimeout(reloadIsActiveAlarm, 10000);
|
||||||
|
setTimeout(reloadIsActiveAlarm, 25000);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -137,7 +138,7 @@
|
|||||||
<button
|
<button
|
||||||
class="btn btn-outline-warning"
|
class="btn btn-outline-warning"
|
||||||
title="Lancer le réveil"
|
title="Lancer le réveil"
|
||||||
on:click={() => { runAlarm(); reloadIsActiveAlarm(); }}
|
on:click={() => { runAlarm(); setTimeout(reloadIsActiveAlarm, 500); }}
|
||||||
>
|
>
|
||||||
<Icon name="play-circle" />
|
<Icon name="play-circle" />
|
||||||
Lancer <span class="d-none d-lg-inline">le réveil</span>
|
Lancer <span class="d-none d-lg-inline">le réveil</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user