Fix viewing photo details
This commit is contained in:
parent
09ae9d0ce3
commit
0318b332bb
2 changed files with 4 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -361,4 +361,7 @@ function formatAddress(a) {
|
|||
}
|
||||
return `${a.number} ${a.street}, ${a.locality}`;
|
||||
}
|
||||
function openPhotoViewer(index) {
|
||||
emit("viewImage", index);
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue