전화걸기 확인 버튼 제거
This commit is contained in:
parent
ea8d71f52f
commit
020f905e93
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user