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