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=af7709d8ee2fdb8dfe3f54d678b7780f5738c93a;hb=2ab4c976427eb13105d8dd03dda3f040a94a1ec1;hp=f5ef36cafb538123f9a9ac36d29651d0862e08e6;hpb=beea5ee48a0efddde5e868eb0c99ba4ba67f1d46;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 f5ef36ca..af7709d8 100644 --- a/webapp-frontend/src/app/ran-control/ran-control.component.ts +++ b/webapp-frontend/src/app/ran-control/ran-control.component.ts @@ -63,21 +63,19 @@ export class RanControlComponent implements OnInit { this.confirmDialogService.openConfirmDialog('Are you sure you want to disconnect all RAN connections?') .afterClosed().subscribe( (res: boolean) => { if (res) { - this.e2MgrSvc.nodebDelete().subscribe( - ( response: HttpResponse) => { - if (response.status === 200) { - this.notificationService.success('Disconnect succeeded!'); - this.dataSource.loadTable(); - } + this.e2MgrSvc.nodebPut().subscribe( + ( body: any ) => { + this.notificationService.success('Disconnect succeeded!'); + this.dataSource.loadTable(); }, - ( (her: HttpErrorResponse) => { + (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); - }) + } ); } });