File tree Expand file tree Collapse file tree 4 files changed +5
-13
lines changed Expand file tree Collapse file tree 4 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { router } from '@/router'
8
8
import { tenantSubdomain } from '@/modules/tenant/tenant-subdomain'
9
9
import AuthCurrentTenant from '@/modules/auth/auth-current-tenant'
10
10
import { TenantService } from '@/modules/tenant/tenant-service'
11
+ import { buildInitialState , store } from '@/store'
11
12
12
13
export default {
13
14
async doInit ( { commit, dispatch } ) {
@@ -247,6 +248,10 @@ export default {
247
248
AuthCurrentTenant . set ( tenant )
248
249
await dispatch ( 'doRefreshCurrentUser' )
249
250
251
+ const initialState = buildInitialState ( true )
252
+
253
+ store . replaceState ( initialState )
254
+
250
255
router . push ( '/' )
251
256
} ,
252
257
Original file line number Diff line number Diff line change @@ -91,7 +91,6 @@ import {
91
91
defineProps ,
92
92
computed ,
93
93
ref ,
94
- onMounted ,
95
94
onUnmounted
96
95
} from ' vue'
97
96
import AppIntegrationConnect from ' @/modules/integration/components/integration-connect'
@@ -158,10 +157,6 @@ const integrationInProgressInterval = setInterval(
158
157
10000
159
158
)
160
159
161
- onMounted (async () => {
162
- await fetchIntegrationInProgress ()
163
- })
164
-
165
160
onUnmounted (() => {
166
161
clearInterval (integrationInProgressInterval)
167
162
})
Original file line number Diff line number Diff line change @@ -328,12 +328,6 @@ export default {
328
328
Errors . handle ( error )
329
329
commit ( 'CREATE_ERROR' )
330
330
}
331
- } ,
332
-
333
- doReset ( { state } ) {
334
- state . byId = { }
335
- state . allIds . splice ( 0 )
336
- state . count = 0
337
331
}
338
332
}
339
333
}
Original file line number Diff line number Diff line change @@ -190,8 +190,6 @@ function doManageWorkspaces() {
190
190
async function doSwitchTenant (tenant ) {
191
191
isDropdownOpen .value = false
192
192
await store .dispatch (' auth/doSelectTenant' , tenant)
193
- await store .dispatch (' integration/doReset' )
194
- await store .dispatch (' integration/doFetch' )
195
193
}
196
194
197
195
function planLabelOf (plan ) {
You can’t perform that action at this time.
0 commit comments