Skip to content

Commit

Permalink
1413 vis feedback (#1428)
Browse files Browse the repository at this point in the history
* Try1

* fix(pinned-courses): add Database query to explicitly check for enrollement on all pinned courses

* Try2

* SSH test

* SSH test

* Update docker-compose.yml

Merge error fixed

* Update docker-compose.yml

* Files reverted

* Mockgen

* Page refresh upon lecture deletion

* File changed

* Update courses.go

* Update home.gohtml

* Update admin-lecture-list.ts

* Update edit-course.ts

* Update edit-course.ts

* Update edit-course.ts

* Delete Lectures button is dynamic now

* Switched files

---------

Co-authored-by: Karakoc <[email protected]>
Co-authored-by: Joscha Henningsen <[email protected]>
  • Loading branch information
3 people authored Jan 10, 2025
1 parent 1a5939d commit 70d099a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div class="flex justify-between">
<div class="flex">
{{- /*buttons header left*/ -}}
<button @click="admin.deleteLectures({{$course.Model.ID}}, selectedLectures.map(({id}) => id))"
<button @click="admin.deleteLectures({{$course.Model.ID}}, selectedLectures.map(({id}) => id)); selectedLectures = []"
:disabled="selectedLectures.length == 0" class="btn mt-2">
Delete
<b x-text="selectedLectures.length.toString()"></b>
Expand Down
2 changes: 1 addition & 1 deletion web/ts/edit-course.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ export async function deleteLectures(cid: number, lids: number[]) {
alert("An unknown error occurred during the deletion process!");
return;
}

window.location.reload();
//LectureList.lectures = LectureList.lectures.filter((l) => !lids.includes(l.lectureId));
//LectureList.triggerUpdate();
}
Expand Down

0 comments on commit 70d099a

Please sign in to comment.