Skip to content

Commit

Permalink
Merge pull request #4995 from dodona-edu/fix/users-dont-refresh
Browse files Browse the repository at this point in the history
Fix refreshing of course members page after actions
  • Loading branch information
jorg-vr authored Sep 22, 2023
2 parents e4f39b4 + 06b9b60 commit 5809976
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/views/courses/_reload_users.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
new dodona.Toast("<%= toast %>");
<% end %>
<% count = @course.pending_members.count %>
document.getElementById("pending-count").innerText = "<%= count if count.nonzero? %>";
if (document.getElementById("pending-count")) {
document.getElementById("pending-count").innerText = "<%= count if count.nonzero? %>";
}
dodona.search.search();

0 comments on commit 5809976

Please sign in to comment.