Fix viewing photo details

This commit is contained in:
Eli Ribble 2026-03-24 09:50:15 -07:00
parent 09ae9d0ce3
commit 0318b332bb
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -57,7 +57,7 @@
</div>
<div v-if="selectedCommunication" class="h-100 d-flex flex-column">
<PublicreportCard :report="selectedCommunication.public_report"/>
<PublicreportCard :report="selectedCommunication.public_report" @viewImage="openPhotoViewer" />
<!-- Report Details -->
</div>
</div>
@ -90,7 +90,6 @@ const nuisance = computed(() => {
const water = computed(() => {
return props.selectedCommunication?.value?.public_report?.water || null;
});
function openPhotoViewer(index) {
emit("viewImage", index);
}

View file

@ -361,4 +361,7 @@ function formatAddress(a) {
}
return `${a.number} ${a.street}, ${a.locality}`;
}
function openPhotoViewer(index) {
emit("viewImage", index);
}
</script>