logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 96564609f87e93d32448da6c7d6a75cea50eff93
parent fbbeb33f48379e056a48c077ac04a59c502125d9
Author: Tusooa Zhu <tusooa@kazv.moe>
Date:   Mon, 17 Jan 2022 23:41:11 -0500

Make StillImage react to src changes

Diffstat:

Msrc/components/still-image/still-image.js8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/components/still-image/still-image.js b/src/components/still-image/still-image.js @@ -57,6 +57,14 @@ const StillImage = { onError () { this.imageLoadError && this.imageLoadError() } + }, + watch: { + src () { + this.realSrc = this.src + }, + dataSrc () { + this.$el.removeAttribute('data-loaded') + } } }