fix: checkLogin in StatusCard (#270)
This commit is contained in:
parent
c4cf3fb371
commit
18d5fd4804
4 changed files with 22 additions and 7 deletions
|
@ -96,3 +96,11 @@ export async function signout() {
|
|||
|
||||
await loginTo(currentUser.value)
|
||||
}
|
||||
|
||||
export function checkLogin() {
|
||||
if (!currentUser.value) {
|
||||
openSigninDialog()
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue