diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2024-02-14 17:32:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-14 17:32:39 +0100 |
commit | 79cf56b3e15c36ad98c695eb9e00ac7e7678e0c7 (patch) | |
tree | 908618e505e6935f29dc20845a00c082e8b1647e /apps | |
parent | e2e226d8565d31ae263239dccebd8cd14d974441 (diff) | |
parent | 035b0098432db4e45ec40839ea79514a6e8c6b04 (diff) | |
download | nextcloud-server-79cf56b3e15c36ad98c695eb9e00ac7e7678e0c7.tar.gz nextcloud-server-79cf56b3e15c36ad98c695eb9e00ac7e7678e0c7.zip |
Merge pull request #43350 from nextcloud/backport/41617/stable27
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_versions/src/components/Version.vue | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/files_versions/src/components/Version.vue b/apps/files_versions/src/components/Version.vue index 6273b59d1f5..36f429b26c1 100644 --- a/apps/files_versions/src/components/Version.vue +++ b/apps/files_versions/src/components/Version.vue @@ -24,14 +24,15 @@ @click="click"> <template #icon> <div v-if="!(loadPreview || previewLoaded)" class="version__image" /> - <img v-else-if="isCurrent || version.hasPreview" + <img v-else-if="(isCurrent || version.hasPreview) && !previewErrored" :src="version.previewUrl" alt="" decoding="async" fetchpriority="low" loading="lazy" class="version__image" - @load="previewLoaded = true"> + @load="previewLoaded = true" + @error="previewErrored = true"> <div v-else class="version__image"> <ImageOffOutline :size="20" /> @@ -206,6 +207,7 @@ export default { data() { return { previewLoaded: false, + previewErrored: false, showVersionLabelForm: false, formVersionLabelValue: this.version.label, capabilities: loadState('core', 'capabilities', { files: { version_labeling: false, version_deletion: false } }), |