ui/client/features/plan/domain/StepErrors
Pure (DOMAIN-001): which step each named validator error belongs to, so it can be shown next to that step in plain words.
Cockpit client (features), v0.9. Source: ui/client/features/plan/domain/StepErrors.ts.
Functions#
errorLead()#
errorLead(
code):string
Defined in: ui/client/features/plan/domain/StepErrors.ts:35
Parameters#
code
string
Returns#
string
errorViews()#
errorViews(
errors):ErrorView[]
Defined in: ui/client/features/plan/domain/StepErrors.ts:38
The errors as the rows a pane shows: a friendly lead, then the validator's own sentence.
Parameters#
errors
Returns#
splitErrors()#
splitErrors(
steps,errors):object
Defined in: ui/client/features/plan/domain/StepErrors.ts:8
Parameters#
steps
PlanStep[]
errors
Returns#
object
byStep
byStep:
Record<string,PlanError[]>
plan
plan:
PlanError[]