ui/client/features/clone/components/CloneForm
Cockpit client (features), v0.8. Source: ui/client/features/clone/components/CloneForm.tsx.
Functions#
CloneForm()#
CloneForm(
__namedParameters):Element
Defined in: ui/client/features/clone/components/CloneForm.tsx:40
Presentation-only "Clone a repository" form for the Open-a-project screen: ONE field that takes whatever people paste, the address it was understood as, an optional folder name and branch, an optional one-time access token for a private repository, the button, and the live progress of the clone with a Cancel.
Props#
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
input |
string |
Yes | — | |
name |
string |
Yes | — | |
branch |
string |
Yes | — | The branch as it will be used: typed by the person, else read from the address, else ''. |
token |
string |
Yes | — | |
inputProblem |
`string | null` | Yes | — |
preview |
`ClonePreview | null` | Yes | — |
workspaceRoot |
`string | null` | Yes | — |
folderProblem |
`string | null` | Yes | — |
branchProblem |
`string | null` | Yes | — |
tokenProblem |
`string | null` | Yes | — |
busy |
boolean |
Yes | — | |
error |
`string | null` | Yes | — |
job |
`CloneJobView | null` | Yes | — |
recent |
ReactNode |
No | — | The recent-clones list (another component of this feature, composed by the controller). |
onInput |
(v: string) => void |
Yes | — | |
onName |
(v: string) => void |
Yes | — | |
onBranch |
(v: string) => void |
Yes | — | |
onToken |
(v: string) => void |
Yes | — | |
onStart |
() => void |
Yes | — | |
onCancel |
() => void |
Yes | — | |
onDismiss |
() => void |
Yes | — |
Returns#
Element