ui/client/features/processes/hooks/useReview
Cockpit client (features), v0.8. Source: ui/client/features/processes/hooks/useReview.tsx.
Functions#
useReview()#
useReview(
dispatch):object
Defined in: ui/client/features/processes/hooks/useReview.tsx:11
The approval gate's review and the person's decisions. One decision on one file at a time; the hash sent is the one the review showed, and who decided is the server's business, so it is not sent.
Parameters#
dispatch
Dispatch<ProcessesAction>
Returns#
object
decide
decide: (
id,path,verdict,diffSha256) =>Promise<void>
Parameters
id
string
path
string
verdict
"approve" | "reject"
diffSha256
string | null
Returns
Promise<void>
loadReview
loadReview: (
id) =>Promise<void>
Parameters
id
string
Returns
Promise<void>