UI: ask before delete
This commit is contained in:
parent
a214347757
commit
df2b3ac01d
@ -50,7 +50,9 @@ export class ScheduleListComponent implements OnInit {
|
||||
}
|
||||
|
||||
delete(schedule: Schedule): void {
|
||||
this.scheduleService.delete(schedule, () => this.remove(schedule));
|
||||
if (confirm("Sicher?")) {
|
||||
this.scheduleService.delete(schedule, () => this.remove(schedule));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -66,7 +66,9 @@ export class ScheduleComponent implements OnInit {
|
||||
}
|
||||
|
||||
delete(entry: ScheduleEntry): void {
|
||||
this.scheduleEntryService.delete(entry, () => this.remove(entry));
|
||||
if (confirm("Sicher?")) {
|
||||
this.scheduleEntryService.delete(entry, () => this.remove(entry));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user