feat(portal-behandel): let a successful refresh clear the load failure (refs #162)

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
not
2026-09-04 10:46:41 +02:00
co-authored by Claude Opus 5
parent d906e2c111
commit 3f8b438500
@@ -64,6 +64,9 @@ export class WerkbakPage {
this.items.set(rows);
this.loading.set(false);
this.loaded.set(true);
// A read that came back is the answer, so a refresh also clears an earlier failure — the
// werkbak recovers on its own instead of showing the error until someone reloads.
this.failed.set(false);
},
// Surface the failure (e.g. 403 for a non-behandelaar) instead of swallowing it.
error: () => {