aboutsummaryrefslogtreecommitdiff
path: root/src/components/still-image
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2019-02-04 19:49:23 +0200
committershpuld <shp@cock.li>2019-02-04 19:49:23 +0200
commit54e7e0e31babbfb0c4ebc2e1a73012e1b1890231 (patch)
tree7533728f9f115f877806694960dcaeb48d28dbd7 /src/components/still-image
parent18ae7bd5f366598d46a65e9da1312c98f7bb00e7 (diff)
parent3cd1deb133926281920f10c1ddd6eb694c09f44d (diff)
merge develop and fix conflicts AGAIN
Diffstat (limited to 'src/components/still-image')
-rw-r--r--src/components/still-image/still-image.js3
-rw-r--r--src/components/still-image/still-image.vue2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/components/still-image/still-image.js b/src/components/still-image/still-image.js
index 5ad06dc2..8f3a7206 100644
--- a/src/components/still-image/still-image.js
+++ b/src/components/still-image/still-image.js
@@ -2,7 +2,8 @@ const StillImage = {
props: [
'src',
'referrerpolicy',
- 'mimetype'
+ 'mimetype',
+ 'imageLoadError'
],
data () {
return {
diff --git a/src/components/still-image/still-image.vue b/src/components/still-image/still-image.vue
index 1dcb7ce6..29c59e42 100644
--- a/src/components/still-image/still-image.vue
+++ b/src/components/still-image/still-image.vue
@@ -1,7 +1,7 @@
<template>
<div class='still-image' :class='{ animated: animated }' >
<canvas ref="canvas" v-if="animated"></canvas>
- <img ref="src" :src="src" :referrerpolicy="referrerpolicy" v-on:load="onLoad"/>
+ <img ref="src" :src="src" :referrerpolicy="referrerpolicy" v-on:load="onLoad" @error="imageLoadError"/>
</div>
</template>