Don't show location data when it's empty
This commit is contained in:
parent
e5211d1409
commit
6db5bb1cbf
1 changed files with 12 additions and 3 deletions
|
|
@ -922,9 +922,18 @@
|
|||
<small class="text-muted d-block"
|
||||
>Distance from Reporter</small
|
||||
>
|
||||
<span
|
||||
x-text="formatDistance(selectedCommunication.public_report.images[currentPhotoIndex].distance_from_reporter_meters)"
|
||||
></span>
|
||||
<template
|
||||
x-if="selectedCommunication.public_report.images[currentPhotoIndex].location.latitude != 0"
|
||||
>
|
||||
<span
|
||||
x-text="formatDistance(selectedCommunication.public_report.images[currentPhotoIndex].distance_from_reporter_meters)"
|
||||
></span>
|
||||
</template>
|
||||
<template
|
||||
x-if="selectedCommunication.public_report.images[currentPhotoIndex].location.latitude == 0"
|
||||
>
|
||||
<span>No location data in image</span>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue