UI including Schedule.name when asking for deletion

This commit is contained in:
Patrick Haßel 2021-10-29 12:26:26 +02:00
parent 8d8b5513a2
commit ec8adf8643
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -66,7 +66,7 @@ export class ScheduleComponent implements OnInit {
}
delete(entry: ScheduleEntry): void {
if (confirm("Sicher?")) {
if (confirm("Eintrag \"" + entry.nextClearTimestamp?.timeString + " +/-" + entry.fuzzySeconds + "\" wirklich löschen?")) {
this.scheduleEntryService.delete(entry, () => this.remove(entry));
}
}