fix: Fix logout button
This commit is contained in:
1 parent
c0702d645c
commit
ab8630a76e
8 files changed
+25
-32
No files matched your search
@@ -34,11 +34,16 @@
|
||||
}
|
||||
|
||||
async function markAllAsRead() {
|
||||
if (!$user) {
|
||||
goto('/login')
|
||||
return
|
||||
}
|
||||
|
||||
const response = await getClient().markAllAsRead({
|
||||
auth: $authData!.token,
|
||||
})
|
||||
|
||||
$user.unreads = 0
|
||||
$user!.unreads = 0
|
||||
|
||||
goto($page.url, {
|
||||
invalidateAll: true,
|
||||
|
||||
Reference in new issue
Block a user