X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/f2633dcc2939466943d2257439c12775fb712a11..52521128a144a4e42653e0bf8c6a6f0fddb8a6bc:/src/components/DetailsOneRow.svelte diff --git a/src/components/DetailsOneRow.svelte b/src/components/DetailsOneRow.svelte index 9b3b27e..67c5152 100644 --- a/src/components/DetailsOneRow.svelte +++ b/src/components/DetailsOneRow.svelte @@ -7,13 +7,14 @@ export let addressLine; export let bDistanceInMeters; + export let bMarkUnusedLines = false; $: bAddressLineUsed = addressLine.isaddress; - + $: reverse_only = Nominatim_Config.Reverse_Only; - - + + {#if addressLine.localname} {addressLine.localname} {:else} @@ -28,20 +29,17 @@ {#if addressLine.osm_id} details - {:else if addressLine.type.match(/^country/)} - search by name - {:else if addressLine.type === 'postcode'} - search by name + {:else if !reverse_only && addressLine.type.match(/^country/)} + search by name + {:else if !reverse_only && addressLine.type === 'postcode'} + search by name {/if}