X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/f51f2a70794858f9c8fb5d75ecd40fd1e4ec3897..0af7af382b5cf0cb446fa1c0084d38609c543daf:/src/components/DetailsOneRow.svelte diff --git a/src/components/DetailsOneRow.svelte b/src/components/DetailsOneRow.svelte index 1ab566d..cd74d93 100644 --- a/src/components/DetailsOneRow.svelte +++ b/src/components/DetailsOneRow.svelte @@ -1,19 +1,19 @@ - + {#if addressLine.localname} {addressLine.localname} {:else} @@ -25,16 +25,21 @@ {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 addressLine.type.match(/^country/)} + search by name + {:else if addressLine.type === 'postcode'} + search by name + {/if} +