1
0
Fork 0
mirror of synced 2024-09-30 09:07:25 +13:00

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)