2019-10-14 13:53:22 +09:00
|
|
|
<ng-container *ngIf="fileInfo && fileInfo.FileType" [ngSwitch]="fileInfo.FileType">
|
|
|
|
<ucap-chat-message-box-attach-file *ngSwitchCase="FileType.File" [fileInfo]="fileInfo" (save)="onSave($event)">
|
|
|
|
</ucap-chat-message-box-attach-file>
|
|
|
|
<ucap-chat-message-box-image *ngSwitchCase="FileType.Image" [fileInfo]="fileInfo"
|
|
|
|
(click)="onClickImageViewer(fileInfo)"></ucap-chat-message-box-image>
|
|
|
|
<ucap-chat-message-box-video *ngSwitchCase="FileType.Video" [fileInfo]="fileInfo"
|
|
|
|
(click)="onClickImageViewer(fileInfo)"></ucap-chat-message-box-video>
|
|
|
|
<ucap-chat-message-box-text *ngSwitchDefault [message]="message"></ucap-chat-message-box-text>
|
|
|
|
</ng-container>
|