diff options
| author | Shpuld Shpludson <shp@cock.li> | 2020-07-07 12:14:58 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2020-07-07 12:14:58 +0000 |
| commit | ec26ff04ce541c3ba5a7f89d57cd04f74e79cfcc (patch) | |
| tree | 7b85ca1b8001d4aedb4a49291c1c5425f30853b0 /src/components/media_modal/media_modal.vue | |
| parent | bbb977a04475a445fc0588af86b3c5eb33ec0577 (diff) | |
| parent | 0fe5d4cf1074fe6c4a811728de187fccadf1cac3 (diff) | |
Merge branch 'xenofem/pleroma-fe-rebased-image-description-authoring' into 'develop'
media description authoring v3
See merge request pleroma/pleroma-fe!1161
Diffstat (limited to 'src/components/media_modal/media_modal.vue')
| -rw-r--r-- | src/components/media_modal/media_modal.vue | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/components/media_modal/media_modal.vue b/src/components/media_modal/media_modal.vue index 80d2a8b9..46931667 100644 --- a/src/components/media_modal/media_modal.vue +++ b/src/components/media_modal/media_modal.vue @@ -8,6 +8,8 @@ v-if="type === 'image'" class="modal-image" :src="currentMedia.url" + :alt="currentMedia.description" + :title="currentMedia.description" @touchstart.stop="mediaTouchStart" @touchmove.stop="mediaTouchMove" @click="hide" @@ -18,6 +20,14 @@ :attachment="currentMedia" :controls="true" /> + <audio + v-if="type === 'audio'" + class="modal-image" + :src="currentMedia.url" + :alt="currentMedia.description" + :title="currentMedia.description" + controls + /> <button v-if="canNavigate" :title="$t('media_modal.previous')" |
