attente du message de vie pour afficher la page infos
This commit is contained in:
@@ -23,17 +23,6 @@ export class InfosComponent implements OnInit {
|
||||
private toast:ToastrService ) { }
|
||||
|
||||
ngOnInit(): void {
|
||||
this.bs.processAlive().subscribe(
|
||||
data => {
|
||||
this.isAlive = data['alive'];
|
||||
}, err => {
|
||||
if(err.status == 401) {
|
||||
this.router.navigateByUrl("/login");
|
||||
} else {
|
||||
this.toast.error(err.error.description);
|
||||
}
|
||||
}
|
||||
)
|
||||
this.bs.retreiveInfos().subscribe(
|
||||
(data:Info) => {
|
||||
this.infos = data;
|
||||
@@ -64,6 +53,10 @@ export class InfosComponent implements OnInit {
|
||||
} else if(data.signal_qos == "Excellent") {
|
||||
this.qos_color = "green";
|
||||
} else {}
|
||||
// demande de message de vie du process KineIntercom
|
||||
this.bs.processAlive().subscribe(
|
||||
data => {
|
||||
this.isAlive = data['alive'];
|
||||
this.isProcessing = false;
|
||||
}, err => {
|
||||
if(err.status == 401) {
|
||||
@@ -72,6 +65,14 @@ export class InfosComponent implements OnInit {
|
||||
this.toast.error(err.error.description);
|
||||
}
|
||||
}
|
||||
)
|
||||
}, err => {
|
||||
if(err.status == 401) {
|
||||
this.router.navigateByUrl("/login");
|
||||
} else {
|
||||
this.toast.error(err.error.description);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user