ui: Can enable federation on alarms

This commit is contained in:
nemunaire 2024-07-25 19:03:21 +02:00
commit 435d1d8f98
5 changed files with 19 additions and 2 deletions

View file

@ -5,11 +5,12 @@ export class AlarmSingle {
}
}
update({ id, time, routines, comment }) {
update({ id, time, routines, comment, enable_federation }) {
this.id = id;
this.time = new Date(time);
this.routines = routines == null ? [] : routines;
this.comment = comment;
this.enable_federation = enable_federation == true;
if (this.routines.length < 1) {
this.routines.push("");