Merge branch 'feature/self-hosting' of github.com:Budibase/budibase into feature/self-hosting
This commit is contained in:
commit
76959922f6
|
@ -68,26 +68,24 @@
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
let steps = []
|
function buildStep(component) {
|
||||||
|
return {
|
||||||
|
component,
|
||||||
|
errors,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// steps need to be initialized for cypress from the get go
|
||||||
|
let steps = [buildStep(API), buildStep(Info), buildStep(User)]
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
let hostingInfo = await hostingStore.actions.fetch()
|
let hostingInfo = await hostingStore.actions.fetch()
|
||||||
steps = []
|
// re-init the steps based on whether self hosting or cloud hosted
|
||||||
// only validate API key for Cloud
|
if (hostingInfo.type === "self") {
|
||||||
if (hostingInfo.type === "cloud") {
|
steps = [buildStep(Info), buildStep(User)]
|
||||||
steps.push({
|
} else {
|
||||||
component: API,
|
steps = [buildStep(API), buildStep(Info), buildStep(User)]
|
||||||
errors,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
steps.push({
|
|
||||||
component: Info,
|
|
||||||
errors,
|
|
||||||
})
|
|
||||||
steps.push({
|
|
||||||
component: User,
|
|
||||||
errors,
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
|
|
||||||
if (hasKey) {
|
if (hasKey) {
|
||||||
|
|
Loading…
Reference in New Issue