From 3f8b4385002aadb069aeb4a703d06e78920387a3 Mon Sep 17 00:00:00 2001 From: Niek Otten Date: Fri, 4 Sep 2026 10:46:41 +0200 Subject: [PATCH] feat(portal-behandel): let a successful refresh clear the load failure (refs #162) Co-Authored-By: Claude Opus 5 (1M context) --- apps/behandel/src/app/werkbak/werkbak-page.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/behandel/src/app/werkbak/werkbak-page.ts b/apps/behandel/src/app/werkbak/werkbak-page.ts index 5c0ba4a..f73ddb1 100644 --- a/apps/behandel/src/app/werkbak/werkbak-page.ts +++ b/apps/behandel/src/app/werkbak/werkbak-page.ts @@ -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: () => {