Line

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

ui/client/features/clone/workflows/Recent

Cockpit client (features), next. Source: ui/client/features/clone/workflows/Recent.ts.

Type Aliases#

RecentAction#

RecentAction = { items: RecentClone[]; type: "SET"; } | { name: string; type: "PULL_START"; } | { name: string; result: PullResult; type: "PULL_DONE"; }

Defined in: ui/client/features/clone/workflows/Recent.ts:11


RecentState#

RecentState = object

Defined in: ui/client/features/clone/workflows/Recent.ts:5

The recent clones of this browser, and what "Pull latest" last said for each folder.

Properties#

items

items: RecentClone[]

Defined in: ui/client/features/clone/workflows/Recent.ts:6

pulls

pulls: Record<string, { busy: boolean; result: PullResult | null; }>

Defined in: ui/client/features/clone/workflows/Recent.ts:8

Folder name -> what the last update said (or that one is running).

Variables#

initialRecentState#

const initialRecentState: RecentState

Defined in: ui/client/features/clone/workflows/Recent.ts:16

Functions#

recentReducer()#

recentReducer(state, action): RecentState

Defined in: ui/client/features/clone/workflows/Recent.ts:18

Parameters#

state

RecentState

action

RecentAction

Returns#

RecentState