Skip to content

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

NameTypeRequiredDefaultDescription
controllerobjectyesThe confirmation controller (objectForm.confirmation from useObjectForm, or confirmation from useActionForm).
titlestring"Confirm action"Dialog heading.
descriptionstring"This action has warnings. Review them before continuing."Explanatory text shown above the list of warnings.
confirmLabelstring"Continue anyway"Label for the button that proceeds.
cancelLabelstring"Cancel"Label for the button that abandons the action.

Slots

NameScopedDescription
warningsyeswarnings 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.

Full slot reference

Source

client/lib/form/confirm/FormConfirmDialog.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2