Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/clone/components/CloneAuthSection

Cockpit client (features), next. Source: ui/client/features/clone/components/CloneAuthSection.tsx.

Type Aliases#

CloneAuthSectionProps#

CloneAuthSectionProps = TokenProps & object

Defined in: ui/client/features/clone/components/CloneAuthSection.tsx:12

Type Declaration#

busy

busy: boolean

Connecting or disconnecting is in flight.

error

error: string | null

mode

mode: CloneAuthMode

onConnect

onConnect: () => void

Returns

void

onDisconnect

onDisconnect: () => void

Returns

void

onMode

onMode: (mode) => void

Parameters
mode

CloneAuthMode

Returns

void

picker

picker: Omit<ComponentProps<typeof GithubRepoPicker>, "disabled">

view

view: GithubPanelView

The GitHub connection for private repositories. visible: false = the feature is off: only the token field shows, exactly as before.

Functions#

CloneAuthSection()#

CloneAuthSection(__namedParameters): Element

Defined in: ui/client/features/clone/components/CloneAuthSection.tsx:29

Presentation-only: how a PRIVATE repository is authorised in the clone form. Feature off: just the token field. On but not connected: a "Connect GitHub for private repositories" button, the token field stays. Connected: "Use my GitHub login" (the default, with a picker of the repositories the connection can read) or the pasted token, and a Disconnect button.

Parameters#

__namedParameters

CloneAuthSectionProps

Returns#

Element