Compare commits
2 Commits
db99892df1
...
5da7cfa089
| Author | SHA1 | Date | |
|---|---|---|---|
| 5da7cfa089 | |||
| 6b3c0716b0 |
@ -1,10 +1,10 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { page } from "$app/stores";
|
import { page } from "$app/state";
|
||||||
import type { Snippet } from "svelte";
|
import type { Snippet } from "svelte";
|
||||||
import { popup, type PopupSettings } from "@skeletonlabs/skeleton";
|
import { popup, type PopupSettings } from "@skeletonlabs/skeleton";
|
||||||
|
|
||||||
const is_at_path = (path: string): boolean => {
|
const is_at_path = (path: string): boolean => {
|
||||||
const pathname: string = $page.url.pathname;
|
const pathname: string = page.url.pathname;
|
||||||
// return pathname === path;
|
// return pathname === path;
|
||||||
return pathname.endsWith(path);
|
return pathname.endsWith(path);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
import "../app.css";
|
import "../app.css";
|
||||||
import { onDestroy, onMount, type Snippet } from "svelte";
|
import { onDestroy, onMount, type Snippet } from "svelte";
|
||||||
import type { LayoutData } from "./$types";
|
import type { LayoutData } from "./$types";
|
||||||
import { page } from "$app/stores";
|
import { page } from "$app/state";
|
||||||
import {
|
import {
|
||||||
Button,
|
Button,
|
||||||
MenuDrawerIcon,
|
MenuDrawerIcon,
|
||||||
@ -578,7 +578,7 @@
|
|||||||
<Button
|
<Button
|
||||||
color="primary"
|
color="primary"
|
||||||
onclick={data_drawer}
|
onclick={data_drawer}
|
||||||
activate={$page.url.pathname.startsWith("/data")}>Data</Button
|
activate={page.url.pathname.startsWith("/data")}>Data</Button
|
||||||
>
|
>
|
||||||
|
|
||||||
{#if !$pbUser}
|
{#if !$pbUser}
|
||||||
|
|||||||
Reference in New Issue
Block a user