Add default config to admin store

This commit is contained in:
Peter Clement 2021-08-12 14:20:23 +01:00
parent 48c40446f0
commit 3ef05e3d36
1 changed files with 9 additions and 2 deletions

View File

@ -3,9 +3,16 @@ import api from "builderStore/api"
import { auth } from "stores/portal" import { auth } from "stores/portal"
export function createAdminStore() { export function createAdminStore() {
const admin = writable({
const DEFAULT_CONFIG = {
loaded: false, loaded: false,
}) multiTenancy: false,
sandbox: false,
onboardingProgress: 0,
checklist: {"apps":0,"smtp":false,"adminUser":false,"sso":false}
}
const admin = writable(DEFAULT_CONFIG)
async function init() { async function init() {
try { try {