ui: Can enable federation on alarms
This commit is contained in:
parent
3a6187d791
commit
435d1d8f98
5 changed files with 19 additions and 2 deletions
|
|
@ -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("");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue