From 4ffc766bcf4554538435bbadac6ed7c541df5fa9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sim=C3=B3=20Albert=20i=20Beltran?= Date: Thu, 23 Jul 2026 20:42:22 +0200 Subject: [PATCH 1/3] fix: recover missing POI marker popup actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 'Add to favorites' and 'Add contact address' buttons in POI marker popups did nothing because onAddFavorite() and onAddContact() methods were referenced in the template but their implementations were lost in commit 864b2a63423fb88bdc92d63c20b1ecca95bb1f15. Signed-off-by: Simó Albert i Beltran --- 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 c85e90d4d..a70fe6f94 100644 --- a/src/components/map/PoiMarker.vue +++ b/src/components/map/PoiMarker.vue @@ -163,8 +163,20 @@ export default { this.map.removeLayer(this.marker); } }, - methods: { - - } + methods: { + onAddFavorite() { + this.$emit('add-favorite', { + latLng: { lat: this.poi.lat, lng: this.poi.lon }, + name: this.header, + formattedAddress: formatAddress(this.poi.address), + address: this.poi.address, + }) + }, + onAddContact() { + this.$emit('place-contact', { + latLng: { lat: this.poi.lat, lng: this.poi.lon }, + }) + }, + } } \ No newline at end of file From 51be439955e1eb808d9b0bdd513b9df17cc6c798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sim=C3=B3=20Albert=20i=20Beltran?= Date: Fri, 24 Jul 2026 01:12:26 +0200 Subject: [PATCH 2/3] fix: open sidebar edit form after adding favorite from POI popup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Simó Albert i Beltran --- src/views/App.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/App.vue b/src/views/App.vue index 09450b67e..0582df7a7 100644 --- a/src/views/App.vue +++ b/src/views/App.vue @@ -1686,7 +1686,7 @@ export default { || obj.address.road || obj.address.city_district : null - this.addFavorite(obj.latLng, name, null, obj.formattedAddress || null) + this.addFavorite(obj.latLng, name, null, obj.formattedAddress || null, null, true, true) }, onAddFavoriteToMap(f) { this.chooseMyMap((map) => { From ccf00aa7a746b23fb633055b2b608e95972e29cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sim=C3=B3=20Albert=20i=20Beltran?= Date: Fri, 24 Jul 2026 01:20:13 +0200 Subject: [PATCH 3/3] fix: close popup after adding favorite from POI marker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Simó Albert i Beltran --- src/components/map/PoiMarker.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/map/PoiMarker.vue b/src/components/map/PoiMarker.vue index a70fe6f94..9a71c2417 100644 --- a/src/components/map/PoiMarker.vue +++ b/src/components/map/PoiMarker.vue @@ -171,6 +171,7 @@ export default { formattedAddress: formatAddress(this.poi.address), address: this.poi.address, }) + if (this.map) this.map.closePopup() }, onAddContact() { this.$emit('place-contact', {