remove log out if user is not signed in
This commit is contained in:
parent
9efc6e00f1
commit
abd7404e57
@ -676,6 +676,7 @@ $: {
|
||||
</a>
|
||||
</DropdownMenu.Item>
|
||||
<DropdownMenu.Separator />
|
||||
{#if data?.user}
|
||||
<DropdownMenu.Item>
|
||||
<form class="cursor-pointer" action="/logout" method="POST">
|
||||
<button type="submit" class="w-full text-start">
|
||||
@ -683,6 +684,7 @@ $: {
|
||||
</button>
|
||||
</form>
|
||||
</DropdownMenu.Item>
|
||||
{/if}
|
||||
</DropdownMenu.Content>
|
||||
</DropdownMenu.Root>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user