UI: ask before delete

This commit is contained in:
Patrick Haßel 2021-10-29 11:39:19 +02:00
parent a214347757
commit df2b3ac01d
2 changed files with 6 additions and 2 deletions

View File

@ -50,7 +50,9 @@ export class ScheduleListComponent implements OnInit {
} }
delete(schedule: Schedule): void { delete(schedule: Schedule): void {
if (confirm("Sicher?")) {
this.scheduleService.delete(schedule, () => this.remove(schedule)); this.scheduleService.delete(schedule, () => this.remove(schedule));
} }
}
} }

View File

@ -66,7 +66,9 @@ export class ScheduleComponent implements OnInit {
} }
delete(entry: ScheduleEntry): void { delete(entry: ScheduleEntry): void {
if (confirm("Sicher?")) {
this.scheduleEntryService.delete(entry, () => this.remove(entry)); this.scheduleEntryService.delete(entry, () => this.remove(entry));
} }
}
} }