From 6d25de5b5682ff632d8e44b5679213e572eb0b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Fri, 4 Feb 2022 23:03:05 +0100 Subject: [PATCH] [ui] don't show groups unless there are some --- webui/src/components/Inspect.svelte | 52 +++++++++++++++-------------- 1 file changed, 27 insertions(+), 25 deletions(-) diff --git a/webui/src/components/Inspect.svelte b/webui/src/components/Inspect.svelte index 5d29f97..11a12b8 100644 --- a/webui/src/components/Inspect.svelte +++ b/webui/src/components/Inspect.svelte @@ -180,32 +180,34 @@ {/if} -
-

Groups

-
- {#each groups as [entryAddress, address]} -
- - {#if editable} - removeGroup(entryAddress)} + {#if groups?.length} +
+

Groups

+
+ {#each groups as [entryAddress, address]} +
+ + {#if editable} + removeGroup(entryAddress)} + /> + {/if} +
+ {/each} + {#if editable} +
+ - {/if} -
- {/each} - {#if editable} -
- -
- {/if} -
-
+
+ {/if} +
+
+ {/if}