fix tests
This commit is contained in:
parent
0b7bb885cc
commit
1790e777cc
|
@ -6,7 +6,7 @@
|
||||||
let loaded = false
|
let loaded = false
|
||||||
|
|
||||||
$: multiTenancyEnabled = $admin.multiTenancy
|
$: multiTenancyEnabled = $admin.multiTenancy
|
||||||
$: hasAdminUser = !!$admin?.checklist?.adminUser
|
$: hasAdminUser = !!$admin?.checklist?.adminUser.checked
|
||||||
$: tenantSet = $auth.tenantSet
|
$: tenantSet = $auth.tenantSet
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
let loaded = false
|
let loaded = false
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
if ($admin?.checklist?.adminUser) {
|
if ($admin?.checklist?.adminUser.checked) {
|
||||||
$redirect("../")
|
$redirect("../")
|
||||||
} else {
|
} else {
|
||||||
loaded = true
|
loaded = true
|
||||||
|
|
|
@ -8,7 +8,12 @@ export function createAdminStore() {
|
||||||
multiTenancy: false,
|
multiTenancy: false,
|
||||||
sandbox: false,
|
sandbox: false,
|
||||||
onboardingProgress: 0,
|
onboardingProgress: 0,
|
||||||
checklist: { apps: 0, smtp: false, adminUser: false, sso: false },
|
checklist: {
|
||||||
|
apps: { checked: false },
|
||||||
|
smtp: { checked: false },
|
||||||
|
adminUser: { checked: false },
|
||||||
|
sso: { checked: false },
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
const admin = writable(DEFAULT_CONFIG)
|
const admin = writable(DEFAULT_CONFIG)
|
||||||
|
|
Loading…
Reference in New Issue