S16 postgresql opslag added
All checks were successful
Build, test and publish / verify (push) Successful in 7m31s

This commit is contained in:
2026-11-04 17:10:25 +01:00
parent f59cad115a
commit 694bf3fa86
89 changed files with 3087 additions and 252 deletions

View File

@@ -219,7 +219,10 @@ export class SchoolPage implements OnInit {
.join(', ') || 'Nog geen groep'
);
}
private deletionRevision?: number;
askDelete(target: DeleteTarget): void {
this.deletionRevision = this.data()?.school.revision;
this.deleteError.set('');
if (target.kind === 'group') {
const names =
@@ -255,7 +258,9 @@ export class SchoolPage implements OnInit {
this.deleteBusy.set(true);
this.deleteError.set('');
try {
await firstValueFrom(this.api.delete(target.kind, schoolId, target.id));
await firstValueFrom(
this.api.delete(target.kind, schoolId, target.id, this.deletionRevision),
);
this.deleting.set(null);
if (target.kind === 'school') await this.router.navigate(['/schools']);
else {