X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c636646759d9c541f7baf19812be18d002a8ce1d..a626c30095620f913366ef2c7db705f66ecdb988:/src/components/DetailsOneRow.svelte
diff --git a/src/components/DetailsOneRow.svelte b/src/components/DetailsOneRow.svelte
index cde2ac2..ccc38cf 100644
--- a/src/components/DetailsOneRow.svelte
+++ b/src/components/DetailsOneRow.svelte
@@ -1,18 +1,20 @@
-
-
+ |
+
{#if addressLine.localname}
{addressLine.localname}
{:else}
@@ -24,17 +26,24 @@
| {addressLine.rank_address} |
{formatAdminLevel(addressLine.admin_level)} |
{@html formatDistance(addressLine.distance, bDistanceInMeters)} |
- {#if addressLine.osm_id}details{/if} |
+
+ {#if addressLine.osm_id}
+ details
+ {:else if !reverse_only && addressLine.type.match(/^country/)}
+ search by name
+ {:else if !reverse_only && addressLine.type === 'postcode'}
+ search by name
+ {/if}
+ |