조직도, 통합검색에서 전화 발신시 컨펌 하도록 수정.
This commit is contained in:
parent
4051b79c69
commit
4e4aba38da
|
@ -23,7 +23,8 @@ import {
|
||||||
ConfirmDialogData,
|
ConfirmDialogData,
|
||||||
AlertDialogComponent,
|
AlertDialogComponent,
|
||||||
AlertDialogResult,
|
AlertDialogResult,
|
||||||
AlertDialogData
|
AlertDialogData,
|
||||||
|
StringFormatterPhonePipe
|
||||||
} from '@ucap-webmessenger/ui';
|
} from '@ucap-webmessenger/ui';
|
||||||
import { SessionStorageService } from '@ucap-webmessenger/web-storage';
|
import { SessionStorageService } from '@ucap-webmessenger/web-storage';
|
||||||
import { Store, select } from '@ngrx/store';
|
import { Store, select } from '@ngrx/store';
|
||||||
|
@ -416,42 +417,44 @@ export class OrganizationComponent implements OnInit, OnDestroy {
|
||||||
calleeNumber = calleeNumber.replace(/\D/g, '');
|
calleeNumber = calleeNumber.replace(/\D/g, '');
|
||||||
|
|
||||||
if (!!calleeNumber && calleeNumber.length > 0) {
|
if (!!calleeNumber && calleeNumber.length > 0) {
|
||||||
// const result = await this.dialogService.open<
|
const result = await this.dialogService.open<
|
||||||
// ConfirmDialogComponent,
|
ConfirmDialogComponent,
|
||||||
// ConfirmDialogData,
|
ConfirmDialogData,
|
||||||
// ConfirmDialogResult
|
ConfirmDialogResult
|
||||||
// >(ConfirmDialogComponent, {
|
>(ConfirmDialogComponent, {
|
||||||
// width: '360px',
|
panelClass: 'miniSize-dialog',
|
||||||
// data: {
|
data: {
|
||||||
// title: this.translateService.instant('call.callTo'),
|
title: this.translateService.instant('call.callTo'),
|
||||||
// html: this.translateService.instant('call.callWithNumber', {
|
html: this.translateService.instant('call.callWithNumber', {
|
||||||
// phoneNumber: calleeNumber
|
phoneNumber: `${new StringFormatterPhonePipe().transform(
|
||||||
// })
|
calleeNumber
|
||||||
// }
|
)}`
|
||||||
// });
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// if (!!result && !!result.choice && result.choice) {
|
if (!!result && !!result.choice && result.choice) {
|
||||||
this.callService
|
this.callService
|
||||||
.sendCall({
|
.sendCall({
|
||||||
userSeq: this.loginRes.userSeq,
|
userSeq: this.loginRes.userSeq,
|
||||||
deviceType: this.environmentsInfo.deviceType,
|
deviceType: this.environmentsInfo.deviceType,
|
||||||
tokenKey: this.loginRes.tokenString,
|
tokenKey: this.loginRes.tokenString,
|
||||||
calleeNumber
|
calleeNumber
|
||||||
})
|
})
|
||||||
.pipe(
|
.pipe(
|
||||||
take(1),
|
take(1),
|
||||||
map(res => {
|
map(res => {
|
||||||
if (res.responseCode === PromptMessageStatusCode.Success) {
|
if (res.responseCode === PromptMessageStatusCode.Success) {
|
||||||
this.logger.debug('SUCCESS');
|
this.logger.debug('SUCCESS');
|
||||||
this.logger.debug(res);
|
this.logger.debug(res);
|
||||||
} else {
|
} else {
|
||||||
this.logger.error(res);
|
this.logger.error(res);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
catchError(error => of(this.logger.debug(error)))
|
catchError(error => of(this.logger.debug(error)))
|
||||||
)
|
)
|
||||||
.subscribe();
|
.subscribe();
|
||||||
// }
|
}
|
||||||
} else {
|
} else {
|
||||||
this.dialogService.open<
|
this.dialogService.open<
|
||||||
AlertDialogComponent,
|
AlertDialogComponent,
|
||||||
|
|
|
@ -37,7 +37,8 @@ import {
|
||||||
ConfirmDialogComponent,
|
ConfirmDialogComponent,
|
||||||
ConfirmDialogData,
|
ConfirmDialogData,
|
||||||
ConfirmDialogResult,
|
ConfirmDialogResult,
|
||||||
TranslateService as UCapTranslateService
|
TranslateService as UCapTranslateService,
|
||||||
|
StringFormatterPhonePipe
|
||||||
} from '@ucap-webmessenger/ui';
|
} from '@ucap-webmessenger/ui';
|
||||||
import {
|
import {
|
||||||
ProfileDialogComponent,
|
ProfileDialogComponent,
|
||||||
|
@ -438,42 +439,44 @@ export class IntegratedSearchDialogComponent implements OnInit, OnDestroy {
|
||||||
calleeNumber = calleeNumber.replace(/\D/g, '');
|
calleeNumber = calleeNumber.replace(/\D/g, '');
|
||||||
|
|
||||||
if (!!calleeNumber && calleeNumber.length > 0) {
|
if (!!calleeNumber && calleeNumber.length > 0) {
|
||||||
// const result = await this.dialogService.open<
|
const result = await this.dialogService.open<
|
||||||
// ConfirmDialogComponent,
|
ConfirmDialogComponent,
|
||||||
// ConfirmDialogData,
|
ConfirmDialogData,
|
||||||
// ConfirmDialogResult
|
ConfirmDialogResult
|
||||||
// >(ConfirmDialogComponent, {
|
>(ConfirmDialogComponent, {
|
||||||
// width: '360px',
|
panelClass: 'miniSize-dialog',
|
||||||
// data: {
|
data: {
|
||||||
// title: this.translateService.instant('call.callTo'),
|
title: this.translateService.instant('call.callTo'),
|
||||||
// html: this.translateService.instant('call.callWithNumber', {
|
html: this.translateService.instant('call.callWithNumber', {
|
||||||
// phoneNumber: calleeNumber
|
phoneNumber: `${new StringFormatterPhonePipe().transform(
|
||||||
// })
|
calleeNumber
|
||||||
// }
|
)}`
|
||||||
// });
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
// if (!!result && !!result.choice && result.choice) {
|
if (!!result && !!result.choice && result.choice) {
|
||||||
this.callService
|
this.callService
|
||||||
.sendCall({
|
.sendCall({
|
||||||
userSeq: this.loginRes.userSeq,
|
userSeq: this.loginRes.userSeq,
|
||||||
deviceType: this.environmentsInfo.deviceType,
|
deviceType: this.environmentsInfo.deviceType,
|
||||||
tokenKey: this.loginRes.tokenString,
|
tokenKey: this.loginRes.tokenString,
|
||||||
calleeNumber
|
calleeNumber
|
||||||
})
|
})
|
||||||
.pipe(
|
.pipe(
|
||||||
take(1),
|
take(1),
|
||||||
map(res => {
|
map(res => {
|
||||||
if (res.responseCode === PromptMessageStatusCode.Success) {
|
if (res.responseCode === PromptMessageStatusCode.Success) {
|
||||||
this.logger.debug('SUCCESS');
|
this.logger.debug('SUCCESS');
|
||||||
this.logger.debug(res);
|
this.logger.debug(res);
|
||||||
} else {
|
} else {
|
||||||
this.logger.error(res);
|
this.logger.error(res);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
catchError(error => of(this.logger.debug(error)))
|
catchError(error => of(this.logger.debug(error)))
|
||||||
)
|
)
|
||||||
.subscribe();
|
.subscribe();
|
||||||
// }
|
}
|
||||||
} else {
|
} else {
|
||||||
this.dialogService.open<
|
this.dialogService.open<
|
||||||
AlertDialogComponent,
|
AlertDialogComponent,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user