diff --git a/ui/src/lib/alarmrepeated.js b/ui/src/lib/alarmrepeated.js index 27002fe..5b841aa 100644 --- a/ui/src/lib/alarmrepeated.js +++ b/ui/src/lib/alarmrepeated.js @@ -12,8 +12,10 @@ export class AlarmRepeated { this.routines = routines == null ? [] : routines; this.ignore_exceptions = ignore_exceptions; this.comment = comment; - this.excepts = excepts; - this.next_time = next_time; + if (excepts !== undefined) + this.excepts = excepts; + if (next_time !== undefined) + this.next_time = next_time; if (this.routines.length < 1) { this.routines.push(""); diff --git a/ui/src/routes/alarms/[kind]/[aid]/+page.svelte b/ui/src/routes/alarms/[kind]/[aid]/+page.svelte index 7448f2a..e767f30 100644 --- a/ui/src/routes/alarms/[kind]/[aid]/+page.svelte +++ b/ui/src/routes/alarms/[kind]/[aid]/+page.svelte @@ -4,6 +4,7 @@ Col, Container, Icon, + Input, ListGroup, ListGroupItem, Row, @@ -117,12 +118,13 @@ Heure du réveil {alarm.time} - - Ignorer les exceptions ? {alarm.ignore_exceptions?"oui":"non"} + + Ignorer les exceptions ? + {obj.ignore_exceptions = !obj.ignore_exceptions; obj.save();}} checked={obj.ignore_exceptions} /> {obj.ignore_exceptions?"oui":"non"} {#if alarm.next_time} - Prochaine occurrence + Prochaine occurrence {/if}