Don't show map if no coords are defined
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
fc699f12b1
commit
dd1e0a3d39
@ -75,17 +75,11 @@
|
|||||||
<span>{{ event.physicalAddress.postal_code }} {{ event.physicalAddress.locality }}</span>
|
<span>{{ event.physicalAddress.postal_code }} {{ event.physicalAddress.locality }}</span>
|
||||||
<!-- <span>{{ event.physicalAddress.region }} {{ event.physicalAddress.country }}</span>-->
|
<!-- <span>{{ event.physicalAddress.region }} {{ event.physicalAddress.country }}</span>-->
|
||||||
</address>
|
</address>
|
||||||
<span class="map-show-button" @click="showMap = !showMap">
|
<span class="map-show-button" @click="showMap = !showMap" v-if="event.physicalAddress && event.physicalAddress.geom">
|
||||||
<translate>Show map</translate>
|
<translate>Show map</translate>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="map" v-if="showMap">-->
|
<b-modal v-if="event.physicalAddress && event.physicalAddress.geom" :active.sync="showMap" :width="800" scroll="keep">
|
||||||
<!-- <map-leaflet-->
|
|
||||||
<!-- :coords="event.physicalAddress.geom"-->
|
|
||||||
<!-- :popup="event.physicalAddress.description"-->
|
|
||||||
<!-- />-->
|
|
||||||
<!-- </div>-->
|
|
||||||
<b-modal v-if="event.physicalAddress" :active.sync="showMap" :width="800" scroll="keep">
|
|
||||||
<div class="map">
|
<div class="map">
|
||||||
<map-leaflet
|
<map-leaflet
|
||||||
:coords="event.physicalAddress.geom"
|
:coords="event.physicalAddress.geom"
|
||||||
|
Loading…
Reference in New Issue
Block a user