forked from AkkomaGang/akkoma-fe
add key attribute to make image refresh in media modal to give feedback
when images are still loaded
This commit is contained in:
parent
777f6c0162
commit
f5823a96e9
1 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
v-if="type === 'image'"
|
||||
class="modal-image"
|
||||
:src="currentMedia.url"
|
||||
:key="currentMedia.url"
|
||||
:alt="currentMedia.description"
|
||||
:title="currentMedia.description"
|
||||
@touchstart.stop="mediaTouchStart"
|
||||
|
@ -19,11 +20,13 @@
|
|||
class="modal-image"
|
||||
:attachment="currentMedia"
|
||||
:controls="true"
|
||||
:key="currentMedia.url"
|
||||
/>
|
||||
<audio
|
||||
v-if="type === 'audio'"
|
||||
class="modal-image"
|
||||
:src="currentMedia.url"
|
||||
:key="currentMedia.url"
|
||||
:alt="currentMedia.description"
|
||||
:title="currentMedia.description"
|
||||
controls
|
||||
|
@ -31,6 +34,7 @@
|
|||
<Flash
|
||||
v-if="type === 'flash'"
|
||||
class="modal-image"
|
||||
:key="currentMedia.url"
|
||||
:src="currentMedia.url"
|
||||
:alt="currentMedia.description"
|
||||
:title="currentMedia.description"
|
||||
|
|
Loading…
Reference in a new issue