Linting.
This commit is contained in:
parent
85320ea938
commit
63c092799f
|
@ -58,20 +58,14 @@
|
||||||
email: string()
|
email: string()
|
||||||
.email()
|
.email()
|
||||||
.required("Your application needs a first user."),
|
.required("Your application needs a first user."),
|
||||||
password: string().required(
|
password: string().required("Please enter a password for your first user."),
|
||||||
"Please enter a password for your first user."
|
|
||||||
),
|
|
||||||
roleId: string().required("You need to select a role for your user."),
|
roleId: string().required("You need to select a role for your user."),
|
||||||
}
|
}
|
||||||
|
|
||||||
let submitting = false
|
let submitting = false
|
||||||
let errors = {}
|
let errors = {}
|
||||||
let validationErrors = {}
|
let validationErrors = {}
|
||||||
let validationSchemas = [
|
let validationSchemas = [apiValidation, infoValidation, userValidation]
|
||||||
apiValidation,
|
|
||||||
infoValidation,
|
|
||||||
userValidation,
|
|
||||||
]
|
|
||||||
|
|
||||||
function buildStep(component) {
|
function buildStep(component) {
|
||||||
return {
|
return {
|
||||||
|
@ -89,10 +83,7 @@
|
||||||
if (hostingInfo.type === "self") {
|
if (hostingInfo.type === "self") {
|
||||||
isApiKeyValid = true
|
isApiKeyValid = true
|
||||||
steps = [buildStep(Info), buildStep(User)]
|
steps = [buildStep(Info), buildStep(User)]
|
||||||
validationSchemas = [
|
validationSchemas = [infoValidation, userValidation]
|
||||||
infoValidation,
|
|
||||||
userValidation,
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue