쪽지 detail > 이미지 지연로딩을 위해 default 이미지 처리.

This commit is contained in:
leejinho 2019-12-11 11:00:52 +09:00
parent 4e5ace1d40
commit bc037c6d52
2 changed files with 6 additions and 1 deletions

View File

@ -103,8 +103,13 @@ export class MessageDetailDialogComponent implements OnInit {
this.messageDetail.contents.length > 0
) {
this.messageDetail.contents.forEach(cont => {
if (cont.resType !== ContentType.AttachFile) {
if (cont.resType === ContentType.Text) {
this.contents.push(cont);
} else if (cont.resType === ContentType.Image) {
this.contents.push({
...cont,
imageSrc: 'assets/images/message/thumb_default.png'
});
} else if (cont.resType === ContentType.AttachFile) {
if (cont.activeYn) {
this.isExpiredAttachFile = false;

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB