diff options
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 } }), |