From 349f05287a5b6fbb19f4c1638cc1d75ab258fb66 Mon Sep 17 00:00:00 2001 From: mtmail Date: Fri, 5 Mar 2021 18:37:57 +0100 Subject: [PATCH] detailspage: children, hierarchy link didnt update after new data loaded (#100) --- src/components/DetailsOneRow.svelte | 7 ++++--- src/components/Header.svelte | 6 +++--- src/components/ReverseLink.svelte | 4 ++-- src/pages/DetailsPage.svelte | 27 +++++++++++++++------------ 4 files changed, 24 insertions(+), 20 deletions(-) diff --git a/src/components/DetailsOneRow.svelte b/src/components/DetailsOneRow.svelte index 9b3b27e..7455245 100644 --- a/src/components/DetailsOneRow.svelte +++ b/src/components/DetailsOneRow.svelte @@ -7,12 +7,13 @@ export let addressLine; export let bDistanceInMeters; + export let bMarkUnusedLines = false; $: bAddressLineUsed = addressLine.isaddress; - + {#if addressLine.localname} {addressLine.localname} @@ -29,9 +30,9 @@ {#if addressLine.osm_id} details {:else if addressLine.type.match(/^country/)} - search by name + search by name {:else if addressLine.type === 'postcode'} - search by name + search by name {/if} diff --git a/src/components/Header.svelte b/src/components/Header.svelte index 4e6359a..9fef1f9 100644 --- a/src/components/Header.svelte +++ b/src/components/Header.svelte @@ -67,20 +67,20 @@ diff --git a/src/components/ReverseLink.svelte b/src/components/ReverseLink.svelte index 2fd2c4c..bbd54d7 100644 --- a/src/components/ReverseLink.svelte +++ b/src/components/ReverseLink.svelte @@ -1,8 +1,8 @@ @@ -138,14 +139,14 @@ {#if aPlace.address} {#each aPlace.address as addressLine} - + {/each} {/if} {#if aPlace.linked_places}

Linked Places

{#each aPlace.linked_places as addressLine} - + {/each} {/if} @@ -161,15 +162,17 @@ {/each} -

Address Keywords

- {#each aPlace.keywords.address as keyword} - - {formatKeywordToken(keyword.token)} - {#if keyword.id} - word id: {keyword.id} - {/if} - - {/each} + {#if aPlace.keywords.address} +

Address Keywords

+ {#each aPlace.keywords.address as keyword} + + {formatKeywordToken(keyword.token)} + {#if keyword.id} + word id: {keyword.id} + {/if} + + {/each} + {/if} {:else} -- 2.39.5