X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=webapp-frontend%2Fsrc%2Fapp%2Fran-control%2Fran-connection-dialog.component.ts;fp=webapp-frontend%2Fsrc%2Fapp%2Fran-control%2Fran-connection-dialog.component.ts;h=c10d97eb48241901798078d0c3c6b36250932b6b;hb=b244a344777f416ad9b5ff09d1a8ad5f5517f2bf;hp=4065f44a9576d1798d7f0959ce7980dac2195b7c;hpb=e4c536ef64c3646a70f914371d3ea696711f32c3;p=portal%2Fric-dashboard.git diff --git a/webapp-frontend/src/app/ran-control/ran-connection-dialog.component.ts b/webapp-frontend/src/app/ran-control/ran-connection-dialog.component.ts index 4065f44a..c10d97eb 100644 --- a/webapp-frontend/src/app/ran-control/ran-connection-dialog.component.ts +++ b/webapp-frontend/src/app/ran-control/ran-connection-dialog.component.ts @@ -73,11 +73,11 @@ export class RanControlConnectDialogComponent implements OnInit { } this.processing = true; const setupRequest: E2SetupRequest = { - ranName: ranFormValue.ranName, - ranIp: ranFormValue.ranIp, - ranPort: ranFormValue.ranPort + ranName: ranFormValue.ranName.trim(), + ranIp: ranFormValue.ranIp.trim(), + ranPort: ranFormValue.ranPort.trim() }; - this.loadingDialogService.startLoading("Setting up connection "); + this.loadingDialogService.startLoading('Setting up connection'); let observable: Observable>; if (ranFormValue.ranType === 'endc') { observable = this.service.endcSetup(setupRequest); @@ -91,7 +91,7 @@ export class RanControlConnectDialogComponent implements OnInit { .subscribe( (response: any) => { this.processing = false; - this.notifService.success('Connect succeeded!'); + this.notifService.success('Connect request sent!'); this.dialogRef.close(true); }, ((her: HttpErrorResponse) => { @@ -101,7 +101,7 @@ export class RanControlConnectDialogComponent implements OnInit { if (her.error && her.error.message) { msg = her.error.message; } - this.errorService.displayError('Connect failed: ' + msg); + this.errorService.displayError('Connect request failed: ' + msg); // keep the dialog open }) );