mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-23 08:48:01 +00:00
Fix confirmation send stuck (#3307)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
5b61ae8fa4
commit
dafe568778
@ -13,8 +13,20 @@
|
||||
// limitations under the License.
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { Label } from '@hcengineering/ui'
|
||||
import { Label, getCurrentLocation, navigate } from '@hcengineering/ui'
|
||||
import login from '../plugin'
|
||||
import { getAccount } from '../utils'
|
||||
import { onMount } from 'svelte'
|
||||
|
||||
onMount(async () => {
|
||||
const account = await getAccount()
|
||||
if (account?.confirmed !== true) {
|
||||
const loc = getCurrentLocation()
|
||||
loc.path[1] = 'selectWorkspace'
|
||||
loc.path.length = 2
|
||||
navigate(loc)
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<div class="flex-center h-full p-10">
|
||||
|
Loading…
Reference in New Issue
Block a user