Skip to content

Commit

Permalink
Merge pull request #78 from Freegle/fix/microvolunteering-message-mul…
Browse files Browse the repository at this point in the history
…tiple-photos

fix: microvolunteering multiple photos viewing
  • Loading branch information
edwh authored Feb 27, 2024
2 parents 665bda8 + e637aa7 commit f53d4e1
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 f53d4e1

Please sign in to comment.