Skip to content

Commit

Permalink
Fix add address to contact
Browse files Browse the repository at this point in the history
Signed-off-by: Arne Hamann <git@arne.email>
  • Loading branch information
tacruc committed Jan 13, 2023
1 parent 642705f commit 12d05ae
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/components/map/PoiMarker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<span class="icon-favorite" />
{{ t('maps', 'Add to favorites') }}
</button>
<button class="search-place-contact" @click="$emit('place-contact', poi)">
<button class="search-place-contact" @click="onAddContact">
<span class="icon-user" />
{{ t('maps', 'Add contact address') }}
</button>
Expand Down Expand Up @@ -242,9 +242,21 @@ export default {
...this.poi,
latLng: {
lat: this.poi.lat,
lng: this.poi.lon
lng: this.poi.lon,
},
name: this.poi.name,
name: this.header,
formattedAddress: formatAddress(this.poi.address)
})
},
onAddContact() {
this.$emit('place-contact',
{
...this.poi,
latLng: {
lat: this.poi.lat,
lng: this.poi.lon,
},
name: this.header,
formattedAddress: formatAddress(this.poi.address)
})
},
Expand Down

0 comments on commit 12d05ae

Please sign in to comment.