Skip to content

Commit eaa6ecf

Browse files
committed
Fix
1 parent 44bd29b commit eaa6ecf

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

src/routes/admin/+page.svelte

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import { page } from "$app/state";
33
import type { SessionInfo } from "$lib/types";
44
import { onMount } from "svelte";
5-
import Error from "$lib/components/Error.svelte";
6-
import { refreshAccessToken, getSessionInfo, isAuthenticated, LinkButton, Loader } from "@davidnet/svelte-ui";
5+
import Error from "$lib/components/Error.svelte";
6+
import { refreshAccessToken, getSessionInfo, isAuthenticated, LinkButton, Loader, FlexWrapper } from "@davidnet/svelte-ui";
77
88
let correlationID = crypto.randomUUID();
99
let error = false;
@@ -38,10 +38,14 @@
3838
</script>
3939

4040
{#if error}
41-
<Error pageName="Admin list" errorMSG="Unknown" />
42-
{:else if Authenticated}
43-
<LinkButton href="https://account.davidnet.net/admin/">Account Admin</LinkButton>
44-
<LinkButton href="https://kanban.davidnet.net/admin/">Kanban Admin</LinkButton>
41+
<Error pageName="Admin list" errorMSG="Unknown" />
4542
{:else}
46-
<Loader/>
43+
<FlexWrapper width="100%" height="100%">
44+
{#if Authenticated}
45+
<LinkButton href="https://account.davidnet.net/admin/">Account Admin</LinkButton>
46+
<LinkButton href="https://kanban.davidnet.net/admin/">Kanban Admin</LinkButton>
47+
{:else}
48+
<Loader />
49+
{/if}
50+
</FlexWrapper>
4751
{/if}

0 commit comments

Comments
 (0)