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
Returns
void
picker
picker:
Omit<ComponentProps<typeofGithubRepoPicker>,"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
Returns#
Element