fix tests

This commit is contained in:
Maurits Lourens 2021-09-06 17:55:19 +02:00
parent de96f7384a
commit a3065bca36
3 changed files with 8 additions and 3 deletions

View File

@ -6,7 +6,7 @@
let loaded = false
$: multiTenancyEnabled = $admin.multiTenancy
$: hasAdminUser = !!$admin?.checklist?.adminUser
$: hasAdminUser = !!$admin?.checklist?.adminUser.checked
$: tenantSet = $auth.tenantSet
onMount(async () => {

View File

@ -6,7 +6,7 @@
let loaded = false
onMount(() => {
if ($admin?.checklist?.adminUser) {
if ($admin?.checklist?.adminUser.checked) {
$redirect("../")
} else {
loaded = true

View File

@ -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)