From c2b9a81c5142dbf7f2fcfce4a166030591e6067e Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 21 Apr 2023 17:37:36 +0200 Subject: [PATCH] Refactoring: don't show title icons if they are not known --- UI/BigComponents/SelectedElementView.svelte | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/UI/BigComponents/SelectedElementView.svelte b/UI/BigComponents/SelectedElementView.svelte index 74b9415bd..e5607975d 100644 --- a/UI/BigComponents/SelectedElementView.svelte +++ b/UI/BigComponents/SelectedElementView.svelte @@ -20,6 +20,7 @@ onDestroy(tags.addCallbackAndRun(tags => { _tags = tags; })); + console.log(layer.titleIcons.map(tr => tr.id)); let _metatags: Record; onDestroy(state.userRelatedState.preferencesAsTags.addCallbackAndRun(tags => { @@ -39,10 +40,13 @@
- {#each layer.titleIcons as titleIconConfig (titleIconConfig.id)} -
- -
+ {#each layer.titleIcons as titleIconConfig} + {#if titleIconConfig.IsKnown(_tags)} +
+ +
+ {/if} {/each}