Line

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

ui/client/features/clone/domain/GithubRepoPick

Pure (DOMAIN-001): the repository picker's entries and what is selected.

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

Functions#

pickedRepo()#

pickedRepo(input, repos): string

Defined in: ui/client/features/clone/domain/GithubRepoPick.ts:13

The picker's value for the address typed in the form, so the picker shows what is selected ('' when it is none of them).

Parameters#

input

string

repos

GithubRepo[]

Returns#

string


repoAddress()#

repoAddress(fullName): string

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

The address the clone form gets when a repository is picked.

Parameters#

fullName

string

Returns#

string


repoOptions()#

repoOptions(repos): RepoOption[]

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

The picker's entries, in the order the server sent them.

Parameters#

repos

GithubRepo[]

Returns#

RepoOption[]