Browse Source

fix(nc-gui): add await to navigateTo

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
02ec03773f
  1. 2
      packages/nc-gui/components/account/ResetPassword.vue
  2. 2
      packages/nc-gui/components/general/MiniSidebar.vue
  3. 2
      packages/nc-gui/layouts/base.vue

2
packages/nc-gui/components/account/ResetPassword.vue

@ -56,7 +56,7 @@ const passwordChange = async () => {
await signOut()
navigateTo('/signin')
await navigateTo('/signin')
}
const resetError = () => {

2
packages/nc-gui/components/general/MiniSidebar.vue

@ -13,7 +13,7 @@ const email = computed(() => user.value?.email ?? '---')
const logout = async () => {
await signOut(false)
navigateTo('/signin')
await navigateTo('/signin')
}
</script>

2
packages/nc-gui/layouts/base.vue

@ -15,7 +15,7 @@ const sidebar = ref<HTMLDivElement>()
const logout = async () => {
await signOut(false)
navigateTo('/signin')
await navigateTo('/signin')
}
const { hooks } = useNuxtApp()

Loading…
Cancel
Save