From dc1e30455afbb97322500c08581736944550dbbb Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Mon, 16 Jan 2023 14:22:26 +0100 Subject: [PATCH] Host edit UI --- frontend/src/components/icon.svelte | 2 + .../src/organisms/addressbar/hostmodal.svelte | 80 +++++++++++++++++++ .../src/organisms/addressbar/index.svelte | 40 +--------- 3 files changed, 84 insertions(+), 38 deletions(-) create mode 100644 frontend/src/organisms/addressbar/hostmodal.svelte diff --git a/frontend/src/components/icon.svelte b/frontend/src/components/icon.svelte index 656f07e..2308d8e 100644 --- a/frontend/src/components/icon.svelte +++ b/frontend/src/components/icon.svelte @@ -22,4 +22,6 @@ {:else if name === 'clipboard'} +{:else if name === 'edit'} + {/if} diff --git a/frontend/src/organisms/addressbar/hostmodal.svelte b/frontend/src/organisms/addressbar/hostmodal.svelte new file mode 100644 index 0000000..8f5d45e --- /dev/null +++ b/frontend/src/organisms/addressbar/hostmodal.svelte @@ -0,0 +1,80 @@ + + + + {#if Object.keys(hosts).length} + + {/if} + + + diff --git a/frontend/src/organisms/addressbar/index.svelte b/frontend/src/organisms/addressbar/index.svelte index dfd3eab..147cc95 100644 --- a/frontend/src/organisms/addressbar/index.svelte +++ b/frontend/src/organisms/addressbar/index.svelte @@ -1,19 +1,12 @@
@@ -34,19 +27,7 @@
- - {#if Object.keys(hosts).length} - - {/if} - +