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