Line

You are reading docs for v0.8. See latest (v0.9)

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.8. 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

PlanError[]

Returns#

ErrorView[]


splitErrors()#

splitErrors(steps, errors): object

Defined in: ui/client/features/plan/domain/StepErrors.ts:8

Parameters#

steps

PlanStep[]

errors

PlanError[]

Returns#

object

byStep

byStep: Record<string, PlanError[]>

plan

plan: PlanError[]