Skip to main content

approve_click

Function approve_click 

Source
pub(crate) async fn approve_click(
    state: &AppState,
    block_id: &str,
    agent: &str,
    ask: &Value,
) -> Result<(Waiting, Instant), ClickRefused>
Expand description

Asks the person to approve the committing click ask describes, in its pane’s banner (spec §5.4). Ok holds the pane locked until it is dropped, so the form can’t change between what they approved and what is sent; make the approved click before dropping it.