FormConfirmDialog
Overview
Confirmation dialog shown when a submission is valid but the server reports advisory warnings that must be acknowledged (HTTP 409). Bind it to the confirmation controller returned by useObjectForm or useActionForm: confirming retries the submission with the warnings acknowledged, cancelling leaves it unsaved with the warnings still displayed.
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| controller | object | yes | The confirmation controller (objectForm.confirmation from useObjectForm, or confirmation from useActionForm). | |
| title | string | "Confirm action" | Dialog heading. | |
| description | string | "This action has warnings. Review them before continuing." | Explanatory text shown above the list of warnings. | |
| confirmLabel | string | "Continue anyway" | Label for the button that proceeds. | |
| cancelLabel | string | "Cancel" | Label for the button that abandons the action. |
Slots
| Name | Scoped | Description |
|---|---|---|
warnings | yes | warnings Replaces the default rendered warnings. warnings is the controller's raw warnings mapping; bulk reports which shape it is in (true for per-object keys, false for a single object's field-keyed messages), sourced from the ConfirmationRequiredError that reported it. The default rendering makes no assumption about that shape: it flattens every value in warnings into a plain list of messages, ignoring keys. |
Source
client/lib/form/confirm/FormConfirmDialog.vue