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

@@ -477,6 +477,7 @@
<app-entity-editor
[target]="target"
[schoolId]="context.school.id"
[revision]="context.school.revision"
[shows]="context.shows"
(closed)="editor.set(null)"
(saved)="saved()"
@@ -487,6 +488,7 @@
[show]="show"
[groups]="context.groups"
[schoolId]="context.school.id"
[revision]="context.school.revision"
(closed)="scheduleEditing.set(null)"
(saved)="reload()"
/>
@@ -495,6 +497,7 @@
<app-group-members
[group]="group"
[schoolId]="context.school.id"
[revision]="context.school.revision"
[dancers]="context.dancers"
(closed)="members.set(null)"
(changed)="membershipChanged($event)"

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 {