New field to disable a repeated alarm
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2022-12-15 18:45:20 +01:00
commit 5526940e61
4 changed files with 13 additions and 1 deletions

View file

@ -5,13 +5,14 @@ export class AlarmRepeated {
}
}
update({ id, weekday, time, routines, ignore_exceptions, comment, excepts, next_time }) {
update({ id, weekday, time, routines, disabled, ignore_exceptions, comment, excepts, next_time }) {
this.id = id;
this.weekday = weekday;
this.time = time;
this.routines = routines == null ? [] : routines;
this.ignore_exceptions = ignore_exceptions;
this.comment = comment;
this.disabled = disabled == true;
if (excepts !== undefined)
this.excepts = excepts;
if (next_time !== undefined)