From 12d05aee3b5a05ddcc489eb0318852c7f815a73e Mon Sep 17 00:00:00 2001 From: Arne Hamann Date: Fri, 13 Jan 2023 23:58:21 +0100 Subject: [PATCH] Fix add address to contact Signed-off-by: Arne Hamann --- src/components/map/PoiMarker.vue | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/components/map/PoiMarker.vue b/src/components/map/PoiMarker.vue index 5db317a0e..6b4e9e82e 100644 --- a/src/components/map/PoiMarker.vue +++ b/src/components/map/PoiMarker.vue @@ -16,7 +16,7 @@ {{ t('maps', 'Add to favorites') }} - @@ -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) }) },