X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fran-control%2Fran-control.component.ts;fp=webapp-frontend%2Fsrc%2Fapp%2Fran-control%2Fran-control.component.ts;h=f5ef36cafb538123f9a9ac36d29651d0862e08e6;hb=3f812ea25d352ec33d07f5ffa4c2aa2a77e8e793;hp=26665ca6b78abbf86d770dd59db6ff4a6ce6a096;hpb=de17870a15d4ad8bd12828c27950aa681165413b;p=portal%2Fric-dashboard.git diff --git a/webapp-frontend/src/app/ran-control/ran-control.component.ts b/webapp-frontend/src/app/ran-control/ran-control.component.ts index 26665ca6..f5ef36ca 100644 --- a/webapp-frontend/src/app/ran-control/ran-control.component.ts +++ b/webapp-frontend/src/app/ran-control/ran-control.component.ts @@ -66,12 +66,17 @@ export class RanControlComponent implements OnInit { this.e2MgrSvc.nodebDelete().subscribe( ( response: HttpResponse) => { if (response.status === 200) { - this.notificationService.success('Disconnect all RAN Connections Succeeded!'); + this.notificationService.success('Disconnect succeeded!'); this.dataSource.loadTable(); } }, - ( (error: HttpErrorResponse) => { - this.errorDialogService.displayError(aboutError + error.message); + ( (her: HttpErrorResponse) => { + // the error field should have an ErrorTransport object + let msg = her.message; + if (her.error && her.error.message) { + msg = her.error.message; + } + this.errorDialogService.displayError('Disconnect failed: ' + msg); }) ); }