diff --git a/src/lib/devices/CreateDevice.svelte b/src/lib/devices/CreateDevice.svelte index c4eb26d..cabdca2 100644 --- a/src/lib/devices/CreateDevice.svelte +++ b/src/lib/devices/CreateDevice.svelte @@ -6,7 +6,7 @@ import { base } from '$app/paths'; // whether the new card html element is visible - let newDeviceCardVisible = false; + export let newDeviceCardVisible = false; let newDeviceForm: HTMLFormElement; let newDeviceKey = ''; let selectedUser = ''; @@ -39,14 +39,6 @@ - -
- {#if newDeviceCardVisible == false} - - {:else} - - {/if} -
{#if newDeviceCardVisible == true}
diff --git a/src/lib/devices/DeviceCard.svelte b/src/lib/devices/DeviceCard.svelte index 6e808f7..d42438b 100644 --- a/src/lib/devices/DeviceCard.svelte +++ b/src/lib/devices/DeviceCard.svelte @@ -1,8 +1,8 @@ @@ -42,9 +43,7 @@ + tag {:else} -
+ - - -
\ No newline at end of file + + + + + diff --git a/src/routes/devices.html.svelte b/src/routes/devices.html.svelte index fae7a8e..55f6b11 100644 --- a/src/routes/devices.html.svelte +++ b/src/routes/devices.html.svelte @@ -9,6 +9,8 @@ import { getUsers, getDevices } from '$lib/common/apiFunctions.svelte'; import { base } from '$app/paths'; + let newDeviceCardVisible = false; + // // Component Variables // @@ -50,7 +52,22 @@ {#if $apiTestStore === 'succeeded'} -
+ + +
+
+ {#if newDeviceCardVisible == false} + + {:else} + + {/if} +
+ + {#each $headscaleDeviceStore as device} {/each}