Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions frontend/src/modules/auth/store/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { router } from '@/router'
import { tenantSubdomain } from '@/modules/tenant/tenant-subdomain'
import AuthCurrentTenant from '@/modules/auth/auth-current-tenant'
import { TenantService } from '@/modules/tenant/tenant-service'
import { buildInitialState, store } from '@/store'

export default {
async doInit({ commit, dispatch }) {
Expand Down Expand Up @@ -247,6 +248,10 @@ export default {
AuthCurrentTenant.set(tenant)
await dispatch('doRefreshCurrentUser')

const initialState = buildInitialState(true)

store.replaceState(initialState)

router.push('/')
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ export default {
</script>
<script setup>
import { useStore } from 'vuex'
import { defineProps, computed, ref } from 'vue'
import {
defineProps,
computed,
ref,
onUnmounted
} from 'vue'
import AppIntegrationConnect from '@/modules/integration/components/integration-connect'

const store = useStore()
Expand Down Expand Up @@ -151,6 +156,10 @@ const integrationInProgressInterval = setInterval(
fetchIntegrationInProgress,
10000
)

onUnmounted(() => {
clearInterval(integrationInProgressInterval)
})
</script>
<style lang="scss">
.integration-custom {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const props = defineProps({
})

const loading = computed(
() => store.getters['integration/loading']
() => store.getters['integration/loadingFetch']
)
const integrationsArray = computed(() => {
return props.onboard
Expand Down