web/settings: move sub navigation into its own component

This commit is contained in:
wukko
2024-09-04 17:50:47 +06:00
parent a18fd72ea0
commit 56008676f5
10 changed files with 363 additions and 344 deletions

View File

@@ -1,8 +1,8 @@
<script lang="ts">
import { goto } from "$app/navigation";
import { page } from "$app/stores";
import { defaultSettingsPage } from "$lib/settings/defaults";
import { onMount } from "svelte";
import { page } from "$app/stores";
import { goto } from "$app/navigation";
import { defaultSettingsPage } from "$lib/subnav";
onMount(() => {
if ($page.error?.message === "Not Found") {