S16 postgresql opslag added
All checks were successful
Build, test and publish / verify (push) Successful in 7m31s
All checks were successful
Build, test and publish / verify (push) Successful in 7m31s
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user