From 020f905e937f9312b8a5ebce0c6c91cff72a5584 Mon Sep 17 00:00:00 2001 From: leejinho Date: Mon, 30 Mar 2020 11:42:21 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A0=84=ED=99=94=EA=B1=B8=EA=B8=B0=20=20?= =?UTF-8?q?=ED=99=95=EC=9D=B8=20=EB=B2=84=ED=8A=BC=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../profile/profile.dialog.component.ts | 70 +++++++++---------- .../components/main.page.component.ts | 60 ++++++++-------- 2 files changed, 65 insertions(+), 65 deletions(-) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/profile/profile.dialog.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/profile/profile.dialog.component.ts index 6ba1ecf1..c26ebf86 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/profile/profile.dialog.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/dialogs/profile/profile.dialog.component.ts @@ -269,42 +269,42 @@ export class ProfileDialogComponent implements OnInit, OnDestroy { calleeNumber = calleeNumber.replace(/\D/g, ''); if (!!calleeNumber && calleeNumber.length > 0) { - const result = await this.dialogService.open< - ConfirmDialogComponent, - ConfirmDialogData, - ConfirmDialogResult - >(ConfirmDialogComponent, { - panelClass: 'miniSize-dialog', - data: { - title: this.translateService.instant('call.callTo'), - html: this.translateService.instant('call.callWithNumber', { - phoneNumber: calleeNumber - }) - } - }); + // const result = await this.dialogService.open< + // ConfirmDialogComponent, + // ConfirmDialogData, + // ConfirmDialogResult + // >(ConfirmDialogComponent, { + // panelClass: 'miniSize-dialog', + // data: { + // title: this.translateService.instant('call.callTo'), + // html: this.translateService.instant('call.callWithNumber', { + // phoneNumber: calleeNumber + // }) + // } + // }); - if (!!result && !!result.choice && result.choice) { - this.callService - .sendCall({ - userSeq: this.loginRes.userSeq, - deviceType: this.environmentsInfo.deviceType, - tokenKey: this.loginRes.tokenString, - calleeNumber - }) - .pipe( - take(1), - map(res => { - if (res.responseCode === PromptMessageStatusCode.Success) { - this.logger.debug('SUCCESS'); - this.logger.debug(res); - } else { - this.logger.error(res); - } - }), - catchError(error => of(this.logger.debug(error))) - ) - .subscribe(); - } + // if (!!result && !!result.choice && result.choice) { + this.callService + .sendCall({ + userSeq: this.loginRes.userSeq, + deviceType: this.environmentsInfo.deviceType, + tokenKey: this.loginRes.tokenString, + calleeNumber + }) + .pipe( + take(1), + map(res => { + if (res.responseCode === PromptMessageStatusCode.Success) { + this.logger.debug('SUCCESS'); + this.logger.debug(res); + } else { + this.logger.error(res); + } + }), + catchError(error => of(this.logger.debug(error))) + ) + .subscribe(); + // } } else { this.dialogService.open< AlertDialogComponent, diff --git a/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.ts b/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.ts index f2b7a753..e8df1684 100644 --- a/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.ts +++ b/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.ts @@ -387,37 +387,37 @@ export class MainPageComponent implements OnInit, OnDestroy { calleeNumber = calleeNumber.replace(/\D/g, ''); if (!!calleeNumber && calleeNumber.length > 0) { - const result = await this.dialogService.open< - ConfirmDialogComponent, - ConfirmDialogData, - ConfirmDialogResult - >(ConfirmDialogComponent, { - panelClass: 'miniSize-dialog', - data: { - title: this.translateService.instant('call.callTo'), - html: this.translateService.instant('call.callWithNumber', { - phoneNumber: calleeNumber - }) - } - }); + // const result = await this.dialogService.open< + // ConfirmDialogComponent, + // ConfirmDialogData, + // ConfirmDialogResult + // >(ConfirmDialogComponent, { + // panelClass: 'miniSize-dialog', + // data: { + // title: this.translateService.instant('call.callTo'), + // html: this.translateService.instant('call.callWithNumber', { + // phoneNumber: calleeNumber + // }) + // } + // }); - if (!!result && !!result.choice && result.choice) { - this.callService - .sendCall({ - userSeq: this.loginRes.userSeq, - deviceType: this.environmentsInfo.deviceType, - tokenKey: this.loginRes.tokenString, - calleeNumber - }) - .pipe( - take(1), - map(res => { - this.logger.debug(res); - }), - catchError(error => of(this.logger.debug(error))) - ) - .subscribe(); - } + // if (!!result && !!result.choice && result.choice) { + this.callService + .sendCall({ + userSeq: this.loginRes.userSeq, + deviceType: this.environmentsInfo.deviceType, + tokenKey: this.loginRes.tokenString, + calleeNumber + }) + .pipe( + take(1), + map(res => { + this.logger.debug(res); + }), + catchError(error => of(this.logger.debug(error))) + ) + .subscribe(); + // } } else { this.dialogService.open< AlertDialogComponent,