mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-01-23 02:34:43 +00:00
allowed settings to be visible even when logged out
This commit is contained in:
parent
2ae563ca67
commit
92aa7db76e
2 changed files with 4 additions and 12 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue