Line

You are reading docs for v0.8. See latest (v0.9)

ui/client/features/project-gate/components/NoProjectScreen

Cockpit client (features), v0.8. Source: ui/client/features/project-gate/components/NoProjectScreen.tsx.

Functions#

NoProjectScreen()#

NoProjectScreen(__namedParameters): Element

Defined in: ui/client/features/project-gate/components/NoProjectScreen.tsx:27

Presentation-only "Open a project" screen: the Cockpit starts with nothing open and never loads the directory it was launched from. One prompt, one picker, scoped to the workspace.

Props#

Prop Type Required Default Description
workspaceRoot `string null` Yes —
lastProject `string null` Yes —
opening boolean Yes —
error `string null` Yes —
onOpen (dir: string) => void Yes —
picker ReactNode Yes — The workspace-scoped folder picker (another feature's controller, composed by the controller).
clone ReactNode No — The clone-a-repository form (another feature's controller, composed by the controller).
samplePath `string null` No null
sampleLoading boolean No false

Returns#

Element