Skip to content

Commit

Permalink
confirm before deleting lecture (#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mjaethers authored Dec 12, 2023
1 parent b34e286 commit 7283eaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/ts/edit-course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ export function lectureEditor(lecture: Lecture): AlpineComponent {
},

deleteLecture() {
DataStore.adminLectureList.delete(this.lectureData.courseId, [this.lectureData.lectureId]);
if (confirm("Do you really want to delete this lecture? This includes any recordings.")) {
DataStore.adminLectureList.delete(this.lectureData.courseId, [this.lectureData.lectureId]);
}
},

deleteLectureSeries() {
Expand Down

0 comments on commit 7283eaf

Please sign in to comment.