diff --git a/src/app/components/home/workspace/infos/infos.component.ts b/src/app/components/home/workspace/infos/infos.component.ts index fc454e4..6c7b447 100644 --- a/src/app/components/home/workspace/infos/infos.component.ts +++ b/src/app/components/home/workspace/infos/infos.component.ts @@ -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,7 +53,19 @@ export class InfosComponent implements OnInit { } else if(data.signal_qos == "Excellent") { this.qos_color = "green"; } else {} - this.isProcessing = false; + // 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) { + this.router.navigateByUrl("/login"); + } else { + this.toast.error(err.error.description); + } + } + ) }, err => { if(err.status == 401) { this.router.navigateByUrl("/login");