add key attribute to make image refresh in media modal to give feedback

when images are still loaded
This commit is contained in:
Henry Jameson 2021-08-15 19:43:52 +03:00
parent 777f6c0162
commit f5823a96e9

View file

@ -8,6 +8,7 @@
v-if="type === 'image'" v-if="type === 'image'"
class="modal-image" class="modal-image"
:src="currentMedia.url" :src="currentMedia.url"
:key="currentMedia.url"
:alt="currentMedia.description" :alt="currentMedia.description"
:title="currentMedia.description" :title="currentMedia.description"
@touchstart.stop="mediaTouchStart" @touchstart.stop="mediaTouchStart"
@ -19,11 +20,13 @@
class="modal-image" class="modal-image"
:attachment="currentMedia" :attachment="currentMedia"
:controls="true" :controls="true"
:key="currentMedia.url"
/> />
<audio <audio
v-if="type === 'audio'" v-if="type === 'audio'"
class="modal-image" class="modal-image"
:src="currentMedia.url" :src="currentMedia.url"
:key="currentMedia.url"
:alt="currentMedia.description" :alt="currentMedia.description"
:title="currentMedia.description" :title="currentMedia.description"
controls controls
@ -31,6 +34,7 @@
<Flash <Flash
v-if="type === 'flash'" v-if="type === 'flash'"
class="modal-image" class="modal-image"
:key="currentMedia.url"
:src="currentMedia.url" :src="currentMedia.url"
:alt="currentMedia.description" :alt="currentMedia.description"
:title="currentMedia.description" :title="currentMedia.description"