Skip to content

Commit

Permalink
fix: microvolunteering multiple photos viewing
Browse files Browse the repository at this point in the history
  • Loading branch information
untael committed Feb 25, 2024
1 parent 48dc874 commit e637aa7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/MicroVolunteeringCheckMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
:actions="false"
:record-view="false"
:show-map="false"
@zoom="showPhotosModal"
/>
<MessagePhotosModal
v-if="showMessagePhotosModal && message.attachments?.length"
:id="message.id"
@hidden="showMessagePhotosModal = false"
/>
<div
v-if="!showComments"
Expand Down Expand Up @@ -83,9 +89,15 @@ export default {
const messageStore = useMessageStore()
await messageStore.fetch(props.id, true)
const showMessagePhotosModal = ref(false)
const showPhotosModal = () => {
showMessagePhotosModal.value = true
}
return {
messageStore,
microVolunteeringStore,
showMessagePhotosModal,
showPhotosModal,
}
},
data() {
Expand Down

0 comments on commit e637aa7

Please sign in to comment.