X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/2a6511b06a68d59c9308e19d73b10ce594627fe7..a626c30095620f913366ef2c7db705f66ecdb988:/src/components/DetailsOneRow.svelte?ds=sidebyside diff --git a/src/components/DetailsOneRow.svelte b/src/components/DetailsOneRow.svelte index 4c43907..ccc38cf 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,9 +29,9 @@ {#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}