조직도, 통합검색에서 전화 발신시 컨펌 하도록 수정.

This commit is contained in:
leejinho 2020-04-01 13:00:14 +09:00
parent 4051b79c69
commit 4e4aba38da
2 changed files with 78 additions and 72 deletions

View File

@ -23,7 +23,8 @@ import {
ConfirmDialogData,
AlertDialogComponent,
AlertDialogResult,
AlertDialogData
AlertDialogData,
StringFormatterPhonePipe
} from '@ucap-webmessenger/ui';
import { SessionStorageService } from '@ucap-webmessenger/web-storage';
import { Store, select } from '@ngrx/store';
@ -416,21 +417,23 @@ export class OrganizationComponent implements OnInit, OnDestroy {
calleeNumber = calleeNumber.replace(/\D/g, '');
if (!!calleeNumber && calleeNumber.length > 0) {
// const result = await this.dialogService.open<
// ConfirmDialogComponent,
// ConfirmDialogData,
// ConfirmDialogResult
// >(ConfirmDialogComponent, {
// width: '360px',
// 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: `${new StringFormatterPhonePipe().transform(
calleeNumber
)}`
})
}
});
// if (!!result && !!result.choice && result.choice) {
if (!!result && !!result.choice && result.choice) {
this.callService
.sendCall({
userSeq: this.loginRes.userSeq,
@ -451,7 +454,7 @@ export class OrganizationComponent implements OnInit, OnDestroy {
catchError(error => of(this.logger.debug(error)))
)
.subscribe();
// }
}
} else {
this.dialogService.open<
AlertDialogComponent,

View File

@ -37,7 +37,8 @@ import {
ConfirmDialogComponent,
ConfirmDialogData,
ConfirmDialogResult,
TranslateService as UCapTranslateService
TranslateService as UCapTranslateService,
StringFormatterPhonePipe
} from '@ucap-webmessenger/ui';
import {
ProfileDialogComponent,
@ -438,21 +439,23 @@ export class IntegratedSearchDialogComponent implements OnInit, OnDestroy {
calleeNumber = calleeNumber.replace(/\D/g, '');
if (!!calleeNumber && calleeNumber.length > 0) {
// const result = await this.dialogService.open<
// ConfirmDialogComponent,
// ConfirmDialogData,
// ConfirmDialogResult
// >(ConfirmDialogComponent, {
// width: '360px',
// 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: `${new StringFormatterPhonePipe().transform(
calleeNumber
)}`
})
}
});
// if (!!result && !!result.choice && result.choice) {
if (!!result && !!result.choice && result.choice) {
this.callService
.sendCall({
userSeq: this.loginRes.userSeq,
@ -473,7 +476,7 @@ export class IntegratedSearchDialogComponent implements OnInit, OnDestroy {
catchError(error => of(this.logger.debug(error)))
)
.subscribe();
// }
}
} else {
this.dialogService.open<
AlertDialogComponent,