From f53fb9af71489cba850402861a672d9fb71da767 Mon Sep 17 00:00:00 2001 From: leejinho Date: Thu, 20 Feb 2020 13:47:56 +0900 Subject: [PATCH] =?UTF-8?q?=EC=95=A8=EB=B2=94=ED=95=A8=EC=97=90=EC=84=9C?= =?UTF-8?q?=20=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EB=B7=B0=EC=96=B4=20=EB=B0=94?= =?UTF-8?q?=EB=A1=9C=20=EB=9D=84=EC=9A=B0=EB=8A=94=20=EB=A1=9C=EC=A7=81=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20(=EB=AF=B8=EC=A0=81=EC=9A=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../right-drawer/album-box.component.ts | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.ts index 2a579ef2..ca4427cd 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer/album-box.component.ts @@ -33,6 +33,12 @@ import { FileDownloadItem } from '@ucap-webmessenger/api'; import { ModuleConfig } from '@ucap-webmessenger/api-common'; import { _MODULE_CONFIG } from 'projects/ucap-webmessenger-api-common/src/lib/config/token'; import { AppFileService } from '@app/services/file.service'; +import { DialogService } from '@ucap-webmessenger/ui'; +import { + FileViewerDialogComponent, + FileViewerDialogResult, + FileViewerDialogData +} from '@app/layouts/common/dialogs/file-viewer.dialog.component'; export interface FileInfoTotal { info: FileInfo; @@ -75,6 +81,7 @@ export class AlbumBoxComponent implements OnInit, OnDestroy { @Inject(UCAP_NATIVE_SERVICE) private nativeService: NativeService, private appFileService: AppFileService, @Inject(_MODULE_CONFIG) private moduleConfig: ModuleConfig, + private dialogService: DialogService, private logger: NGXLogger ) { this.loginRes = this.sessionStorageService.get( @@ -261,4 +268,29 @@ export class AlbumBoxComponent implements OnInit, OnDestroy { this.playable = false; } } + + async onFileViewer(event: MouseEvent, fileInfos: FileInfoTotal) { + // const result = await this.dialogService.open< + // FileViewerDialogComponent, + // FileViewerDialogData, + // FileViewerDialogResult + // >(FileViewerDialogComponent, { + // position: { + // top: '50px' + // }, + // maxWidth: '100vw', + // maxHeight: '100vh', + // height: 'calc(100% - 50px)', + // width: '100%', + // hasBackdrop: false, + // panelClass: 'app-dialog-full', + // data: { + // fileInfo: fileInfos.info.sentMessageJson, + // downloadUrl: this.sessionVerinfo.downloadUrl, + // deviceType: this.environmentsInfo.deviceType, + // token: this.loginRes.tokenString, + // userSeq: this.loginRes.userSeq + // } + // }); + } }