Line

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

ui/client/features/clone/domain/GithubConnection

Pure (DOMAIN-001): the GitHub connection for private repositories as the screens show it.

Cockpit client (features), next. Source: ui/client/features/clone/domain/GithubConnection.ts.

Functions#

effectiveAuthMode()#

effectiveAuthMode(status, choice): CloneAuthMode

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

How this clone is authorised: "Use my GitHub login" is the default whenever a connection exists; the pasted token is the fallback (and the only way when the connection is off or not made). A stale choice of the login with no connection falls back to the token.

Parameters#

status

GithubStatus | null

choice

CloneAuthMode | null

Returns#

CloneAuthMode


githubPanelView()#

githubPanelView(status): GithubPanelView

Defined in: ui/client/features/clone/domain/GithubConnection.ts:15

What to draw: nothing when the feature is off (or not yet known), else the connection in one line.

Parameters#

status

GithubStatus | null

Returns#

GithubPanelView