fix: Fix logout button
This commit is contained in:
1 parent
c0702d645c
commit
ab8630a76e
8 files changed
+25
-32
No files matched your search
@@ -11,5 +11,5 @@
|
||||
{alt}
|
||||
{width}
|
||||
loading="lazy"
|
||||
class="rounded-full aspect-square object-cover"
|
||||
class="rounded-full aspect-square object-cover overflow-hidden"
|
||||
/>
|
||||
@@ -116,9 +116,8 @@
|
||||
<MenuButton
|
||||
on:click={() => {
|
||||
localStorage.removeItem('user')
|
||||
goto('/', {
|
||||
invalidateAll: true,
|
||||
})
|
||||
user.set(undefined)
|
||||
authData.set(undefined)
|
||||
}}
|
||||
color={Color.dangerSecondary}
|
||||
>
|
||||
|
||||
@@ -20,10 +20,10 @@
|
||||
|
||||
<svelte:body
|
||||
on:click={(event) => {
|
||||
let path = event.composedPath()
|
||||
if (open) {
|
||||
let path = event.composedPath()
|
||||
|
||||
if (!path.includes(element)) {
|
||||
if (open) {
|
||||
if (!path.includes(element)) {
|
||||
open = false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user