allowed settings to be visible even when logged out

This commit is contained in:
Chris 2025-11-16 09:53:33 +00:00
parent 2ae563ca67
commit 92aa7db76e
2 changed files with 4 additions and 12 deletions

View file

@ -15,7 +15,6 @@
<form action="">
<fieldset class="fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4">
<legend class="fieldset-legend">First Time Registration</legend>
<p class="label">The first account will also be created as a superadmin<br> in the pocketbase back end</p>
<label class="label" for="email">Email</label>
<input type="email" bind:value={inputEmail} required class="input" id="email" placeholder="Email" />
<p class="label">

View file

@ -1,21 +1,14 @@
<script lang="ts">
import { appSettings } from '$lib/components/common/state.svelte';
import ServerSettings from '$lib/components/settings/server-settings.svelte';
import ThemeSettings from '$lib/components/settings/theme-settings.svelte';
import { goto } from '$app/navigation';
import { resolve } from '$app/paths';
import { onMount } from 'svelte';
let pageStatus = $state('none');
onMount(() => {
if (!appSettings.pb.authStore.isValid) {
goto(resolve('/login.html'));
} else {
appSettings.navbarTitle = 'Settings';
appSettings.sidebarDrawerOpen = false;
pageStatus = 'loaded';
}
appSettings.navbarTitle = 'Settings';
appSettings.sidebarDrawerOpen = false;
pageStatus = 'loaded';
});
appSettings.navbarTitle = 'Settings';
@ -23,6 +16,6 @@
</script>
<div class="max-w-128">
<ServerSettings></ServerSettings>
<!-- <ServerSettings></ServerSettings> -->
<ThemeSettings></ThemeSettings>
</div>