diff options
author | marco <marcoambrosini@pm.me> | 2022-04-25 11:04:29 +0200 |
---|---|---|
committer | marco <marcoambrosini@pm.me> | 2022-04-25 14:16:29 +0200 |
commit | 4e63b5ca2bd8bd013c0396138bfc7d35336415b7 (patch) | |
tree | c64f814e8fa643157ab2db7bf38f16a266bc36fe /src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue | |
parent | 90f7e3f72c4b9cb15f67165c26873baf52327404 (diff) |
Do not try to fetch previews for row layout
Signed-off-by: marco <marcoambrosini@pm.me>
Diffstat (limited to 'src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue')
-rw-r--r-- | src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue index 09cda5d64..553b675bd 100644 --- a/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue +++ b/src/components/MessagesList/MessagesGroup/Message/MessagePart/FilePreview.vue @@ -295,7 +295,7 @@ export default { classes += 'preview ' } - if (this.failed || this.previewType === PREVIEW_TYPE.MIME_ICON) { + if (this.failed || this.previewType === PREVIEW_TYPE.MIME_ICON || this.rowLayout) { classes += 'mimeicon' } return classes @@ -323,7 +323,7 @@ export default { if (this.previewType === PREVIEW_TYPE.TEMPORARY) { return this.localUrl } - if (this.previewType === PREVIEW_TYPE.MIME_ICON) { + if (this.previewType === PREVIEW_TYPE.MIME_ICON || this.rowLayout) { return OC.MimeType.getIconUrl(this.mimetype) } // whether to embed/render the file directly |