mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-23 14:06:00 +03:00
Fix confirmation send message (#3393)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
d5e05011db
commit
37aeb9f466
@ -20,7 +20,7 @@
|
||||
|
||||
onMount(async () => {
|
||||
const account = await getAccount()
|
||||
if (account?.confirmed !== true) {
|
||||
if (account?.confirmed === true) {
|
||||
const loc = getCurrentLocation()
|
||||
loc.path[1] = 'selectWorkspace'
|
||||
loc.path.length = 2
|
||||
@ -29,7 +29,7 @@
|
||||
})
|
||||
</script>
|
||||
|
||||
<div class="flex-center h-full p-10">
|
||||
<div class="flex-center h-full p-10 caption-color">
|
||||
<div class="flex-col-center text-center">
|
||||
<h4>
|
||||
<Label label={login.string.ConfirmationSent} />
|
||||
|
@ -50,7 +50,15 @@
|
||||
|
||||
async function _getWorkspaces (): Promise<Workspace[]> {
|
||||
try {
|
||||
return getWorkspaces()
|
||||
const res = await getWorkspaces()
|
||||
if (res.length === 0 && account?.confirmed === false) {
|
||||
const loc = getCurrentLocation()
|
||||
loc.path[1] = 'confirmationSend'
|
||||
loc.path.length = 2
|
||||
navigate(loc)
|
||||
return []
|
||||
}
|
||||
return res
|
||||
} catch (err: any) {
|
||||
setMetadataLocalStorage(presentation.metadata.Token, null)
|
||||
setMetadataLocalStorage(login.metadata.LoginEndpoint, null)
|
||||
|
Loading…
Reference in New Issue
Block a user