}
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<HttpResponse<Object>>;
if (ranFormValue.ranType === 'endc') {
observable = this.service.endcSetup(setupRequest);
.subscribe(
(response: any) => {
this.processing = false;
- this.notifService.success('Connect succeeded!');
+ this.notifService.success('Connect request sent!');
this.dialogRef.close(true);
},
((her: HttpErrorResponse) => {
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
})
);