From 42c52828440eec1485773baa08e4389d92ee48ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 27 Jan 2026 13:46:43 +0700 Subject: [PATCH] Don't show GMaps link for private bookmarks --- app/components/place-details.gjs | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/app/components/place-details.gjs b/app/components/place-details.gjs index c6b99b0..5c28c5e 100644 --- a/app/components/place-details.gjs +++ b/app/components/place-details.gjs @@ -140,6 +140,8 @@ export default class PlaceDetails extends Component { } get gmapsUrl() { + const id = this.place.gmapsId || this.place.osmId; + if (!id) return null; return `https://www.google.com/maps/search/?api=1&query=${this.name}&query=${this.place.lat},${this.place.lon}`; } @@ -259,7 +261,7 @@ export default class PlaceDetails extends Component { {{#if this.osmUrl}}

- + OpenStreetMap @@ -268,14 +270,16 @@ export default class PlaceDetails extends Component {

{{/if}} -

- - - - Google Maps - - -

+ {{#if this.gmapsUrl}} +

+ + + + Google Maps + + +

+ {{/if}}