All checks were successful
CI / lint (pull_request) Successful in 1m11s
CI / build (pull_request) Successful in 54s
CI / unit (pull_request) Successful in 1m0s
CI / frontend (pull_request) Successful in 1m49s
CI / mutation (pull_request) Successful in 4m3s
CI / verify-stack (pull_request) Successful in 7m42s
Add an error branch to submit(): on a failed BFF call, set a `failed` signal, re-enable the button, and render a role="alert" message so the user knows the submit did not go through and can retry — instead of the click silently doing nothing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
28 lines
792 B
HTML
28 lines
792 B
HTML
<main utrecht-document class="utrecht-theme">
|
|
<utrecht-article>
|
|
<utrecht-heading-1>Zelfservice — BIG-registratie</utrecht-heading-1>
|
|
|
|
@if (submitted()) {
|
|
<p utrecht-paragraph role="status">
|
|
Uw registratie is ontvangen. Referentie: {{ reference() }}.
|
|
</p>
|
|
} @else {
|
|
<p utrecht-paragraph>U bent ingelogd met BSN {{ bsn() }}.</p>
|
|
@if (failed()) {
|
|
<p utrecht-paragraph role="alert">
|
|
Er ging iets mis bij het indienen van uw registratie. Probeer het opnieuw.
|
|
</p>
|
|
}
|
|
<button
|
|
utrecht-button
|
|
appearance="primary-action-button"
|
|
type="button"
|
|
[disabled]="submitting()"
|
|
(click)="submit()"
|
|
>
|
|
Registratie indienen
|
|
</button>
|
|
}
|
|
</utrecht-article>
|
|
</main>
|