alarms list on refresh

This commit is contained in:
Paolo Possanzini
2018-02-22 16:48:24 +01:00
parent b05d892cbb
commit 8f92d96c0c
3 changed files with 4 additions and 3 deletions
+2 -2
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -83,7 +83,7 @@ export class Hub {
alarmsModelActions.addServiceAlarm(store, { guid : "MAINT_" + element.Id, id: element.Id, dateTime: new Date(element.ExpirationDate) } as any)
}
}
alarmsModelActions.checkRemove(store, status.map(i => i.guid));
alarmsModelActions.checkRemoveServiceAlarm(store, status.map(i => i.guid));
}
private static manageProcesses(status: signalr_process.DTOProcessDataModel) {
+1
View File
@@ -142,6 +142,7 @@ export const alarmsStore = {
CheckRemoveAlarm(store, keys: Array<String>) {
let removed = false;
debugger
// Cancello gli allarmi
let ak = Array.from((store._alarms as Map<string, AlarmModel>).keys());
for (const index in ak) {