💅 Updates status bare page store
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page } from '$app/stores'
|
import { page } from '$app/state'
|
||||||
import { telemetry } from '$lib/stores/telemetry'
|
import { telemetry } from '$lib/stores/telemetry'
|
||||||
|
|
||||||
import RssiIndicator from '$lib/components/statusbar/RSSIIndicator.svelte'
|
import RssiIndicator from '$lib/components/statusbar/RSSIIndicator.svelte'
|
||||||
@@ -17,10 +17,10 @@
|
|||||||
<label for="main-menu" class="btn btn-ghost btn-circle btn-sm drawer-button">
|
<label for="main-menu" class="btn btn-ghost btn-circle btn-sm drawer-button">
|
||||||
<Hamburger class="h-6 w-auto" />
|
<Hamburger class="h-6 w-auto" />
|
||||||
</label>
|
</label>
|
||||||
{#if $page.data.title === 'Controller'}
|
{#if page.data.title === 'Controller'}
|
||||||
<ViewSelector />
|
<ViewSelector />
|
||||||
{:else}
|
{:else}
|
||||||
<h1 class="px-2 text-xl font-bold lg:text-2xl">{$page.data.title}</h1>
|
<h1 class="px-2 text-xl font-bold lg:text-2xl">{page.data.title}</h1>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user