fix tests

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

View File

@ -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 () => {

View File

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

View File

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