feat(portal-beheer): beheer portal + read-only catalogus viewer (closes #130) #133

Merged
not merged 13 commits from feat/130-beheer-catalogi into main 2026-07-24 11:08:18 +00:00
Showing only changes of commit 4c702e324a - Show all commits
@@ -21,6 +21,25 @@ export class CatalogusPage {
protected readonly failed = signal(false);
constructor() {
// ponytail: stub for the red test; the real load lands in the green commit.
this.load();
}
load(): void {
this.loading.set(true);
this.failed.set(false);
this.bff.getBeheerCatalogiZaaktypen().subscribe({
next: (rows: BeheerZaaktype[]) => {
this.items.set(rows);
this.loading.set(false);
this.loaded.set(true);
},
// Surface the failure (e.g. 403 for a non-beheerder) instead of swallowing it.
error: () => {
this.items.set([]);
this.loading.set(false);
this.loaded.set(true);
this.failed.set(true);
},
});
}
}