Update refresh interval for alerts in frontend
This commit is contained in:
parent
7701edd0e1
commit
a41c4e8610
|
@ -60,7 +60,7 @@ export class ModalAlertComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
console.log("Refreshing responses data...");
|
console.log("Refreshing responses data...");
|
||||||
this.loadResponsesData();
|
this.loadResponsesData();
|
||||||
}, 2000);
|
}, 15000);
|
||||||
this.loadResponsesData();
|
this.loadResponsesData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ export class AppComponent {
|
||||||
this.loadAlertsInterval = setInterval(() => {
|
this.loadAlertsInterval = setInterval(() => {
|
||||||
console.log("Refreshing alerts...");
|
console.log("Refreshing alerts...");
|
||||||
this.loadAlerts();
|
this.loadAlerts();
|
||||||
}, 15000);
|
}, 30000);
|
||||||
this.loadAlerts();
|
this.loadAlerts();
|
||||||
|
|
||||||
this.api.alertsChanged.subscribe(() => {
|
this.api.alertsChanged.subscribe(() => {
|
||||||
|
|
Loading…
Reference in New Issue