Line

ui/client/features/clone/domain/CloneFormView

Pure (DOMAIN-001): what the clone form shows for the text typed so far, and the rows of the recent list.

Cockpit client (features), v0.9. Source: ui/client/features/clone/domain/CloneFormView.ts.

Type Aliases#

CloneFormReading#

CloneFormReading = object

Defined in: ui/client/features/clone/domain/CloneFormView.ts:5

Properties#

branch

branch: string

Defined in: ui/client/features/clone/domain/CloneFormView.ts:10

The branch as it will be used: typed by the person, else read from the address, else ''.

inputProblem

inputProblem: string | null

Defined in: ui/client/features/clone/domain/CloneFormView.ts:7

A plain problem with the pasted text, or null.

preview

preview: ClonePreview | null

Defined in: ui/client/features/clone/domain/CloneFormView.ts:8

Functions#

buildRecentRows()#

buildRecentRows(items, pulls): RecentCloneRow[]

Defined in: ui/client/features/clone/domain/CloneFormView.ts:30

The recent clones, each with what its last update said.

Parameters#

items

RecentClone[]

pulls

Record<string, { busy: boolean; result: PullResult | null; }>

Returns#

RecentCloneRow[]


readCloneForm()#

readCloneForm(input, typedBranch): CloneFormReading

Defined in: ui/client/features/clone/domain/CloneFormView.ts:14

Read the pasted text (and a hand-typed branch, or null when not edited) for the form.

Parameters#

input

string

typedBranch

string | null

Returns#

CloneFormReading