diff --git a/frontend/src/organisms/addressbar/hostmodal.svelte b/frontend/src/organisms/addressbar/hostmodal.svelte index 31fb4b2..d7e4ad6 100644 --- a/frontend/src/organisms/addressbar/hostmodal.svelte +++ b/frontend/src/organisms/addressbar/hostmodal.svelte @@ -14,6 +14,7 @@ let error = ''; let createHostModalOpen = false; $: host = hosts?.[activeHostKey]; + $: hostCount = Object.keys(hosts).length; $: if (!modalOpen) { error = ''; @@ -47,13 +48,20 @@ onMount(getHosts); - - {#if error} -

- Oops! {error} + +

+

+ {#if error} + Oops! {error} + {:else} + {hostCount} host{hostCount === 1 ? '' : 's'} + {/if}

- {/if} - {#if Object.keys(hosts).length} + +
+ {#if hostCount}