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