쪽지 detail > 이미지 지연로딩을 위해 default 이미지 처리.
This commit is contained in:
parent
4e5ace1d40
commit
bc037c6d52
|
@ -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 |
Loading…
Reference in New Issue
Block a user