mirror of
https://github.com/pockethost/pockethost.git
synced 2026-02-27 13:33:20 +00:00
fix empty dashboard regression
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
<script lang="ts">
|
||||
import AuthStateGuard from '$components/helpers/AuthStateGuard.svelte'
|
||||
import { globalInstancesStore } from '$util/stores'
|
||||
import { values } from '@s-libs/micro-dash'
|
||||
import InstanceList from './InstanceList.svelte'
|
||||
|
||||
$: isFirstApplication = values($globalInstancesStore).length === 0
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
@@ -12,15 +8,13 @@
|
||||
</svelte:head>
|
||||
|
||||
<AuthStateGuard>
|
||||
{#if !isFirstApplication}
|
||||
<div class="flex items-center justify-between mb-6">
|
||||
<h2 class="text-4xl text-base-content font-bold capitalize">Dashboard</h2>
|
||||
<div class="flex items-center justify-between mb-6">
|
||||
<h2 class="text-4xl text-base-content font-bold capitalize">Dashboard</h2>
|
||||
|
||||
<a href="/app/new" class="m-3 btn btn-primary"
|
||||
><i class="fa-solid fa-plus"></i> New App</a
|
||||
>
|
||||
</div>
|
||||
<a href="/app/new" class="m-3 btn btn-primary"
|
||||
><i class="fa-solid fa-plus"></i> New App</a
|
||||
>
|
||||
</div>
|
||||
|
||||
<InstanceList />
|
||||
{/if}
|
||||
<InstanceList />
|
||||
</AuthStateGuard>
|
||||
|
||||
Reference in New Issue
Block a user