From 34d265467a77d4e680e3c56c254df7dfb904fc18 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 15 Aug 2021 19:45:48 +0300 Subject: [PATCH] add media description into media modal --- src/components/media_modal/media_modal.js | 3 + src/components/media_modal/media_modal.vue | 126 ++++++++++++--------- 2 files changed, 76 insertions(+), 53 deletions(-) diff --git a/src/components/media_modal/media_modal.js b/src/components/media_modal/media_modal.js index b6919366..2e6aa1e3 100644 --- a/src/components/media_modal/media_modal.js +++ b/src/components/media_modal/media_modal.js @@ -29,6 +29,9 @@ const MediaModal = { media () { return this.$store.state.mediaViewer.media }, + description () { + return this.currentMedia.description + }, currentIndex () { return this.$store.state.mediaViewer.currentIndex }, diff --git a/src/components/media_modal/media_modal.vue b/src/components/media_modal/media_modal.vue index 31455e48..2a571056 100644 --- a/src/components/media_modal/media_modal.vue +++ b/src/components/media_modal/media_modal.vue @@ -61,6 +61,12 @@ icon="chevron-right" /> + + {{ description }} + @@ -69,6 +75,7 @@