From b9b1cc2f65336fbfc621bf3f3233a4c8a7ecf3a6 Mon Sep 17 00:00:00 2001 From: Stefan Yoshovski Date: Wed, 10 Jun 2026 13:09:12 +0200 Subject: [PATCH] feat(web): warn before overwriting existing locations in geolocation utility (#28840) --- i18n/en.json | 1 + .../lib/modals/GeolocationUpdateConfirmModal.svelte | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 2e6b7ba492..a4290dadd5 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -2248,6 +2248,7 @@ "slideshow_repeat_description": "Loop back to beginning when slideshow ends", "slideshow_settings": "Slideshow settings", "smart_album": "Smart album", + "some_assets_already_have_a_location_warning": "Some of the selected assets already have a location", "sort_albums_by": "Sort albums by...", "sort_created": "Date created", "sort_items": "Number of items", diff --git a/web/src/lib/modals/GeolocationUpdateConfirmModal.svelte b/web/src/lib/modals/GeolocationUpdateConfirmModal.svelte index f97fc91824..8230f62c73 100644 --- a/web/src/lib/modals/GeolocationUpdateConfirmModal.svelte +++ b/web/src/lib/modals/GeolocationUpdateConfirmModal.svelte @@ -1,6 +1,7 @@ {#snippet prompt()} + {#if hasExistingLocations} + {$t('some_assets_already_have_a_location_warning')} + {/if}

{$t('update_location_action_prompt', { values: { count: assetCount } })}

- {$t('latitude')}: {point.lat}

- {$t('longitude')}: {point.lng}