Remove redundant default store value
This commit is contained in:
parent
0fd8427a0f
commit
512d87ac36
|
@ -14,7 +14,8 @@ interface PortalAdminStore extends GetEnvironmentResponse {
|
||||||
status?: SystemStatusResponse
|
status?: SystemStatusResponse
|
||||||
}
|
}
|
||||||
|
|
||||||
export const DEFAULT_CONFIG: PortalAdminStore = {
|
export function createAdminStore() {
|
||||||
|
const admin = writable<PortalAdminStore>({
|
||||||
loaded: false,
|
loaded: false,
|
||||||
multiTenancy: false,
|
multiTenancy: false,
|
||||||
cloud: false,
|
cloud: false,
|
||||||
|
@ -22,10 +23,7 @@ export const DEFAULT_CONFIG: PortalAdminStore = {
|
||||||
disableAccountPortal: false,
|
disableAccountPortal: false,
|
||||||
offlineMode: false,
|
offlineMode: false,
|
||||||
maintenance: [],
|
maintenance: [],
|
||||||
}
|
})
|
||||||
|
|
||||||
export function createAdminStore() {
|
|
||||||
const admin = writable(DEFAULT_CONFIG)
|
|
||||||
|
|
||||||
async function init() {
|
async function init() {
|
||||||
await getChecklist()
|
await getChecklist()
|
||||||
|
|
Loading…
Reference in New Issue