diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-08-10 15:52:40 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-08-10 15:52:40 +0200 |
| commit | 041665c66685f55a34f00afffb017b21bbe04386 (patch) | |
| tree | 3a8941e7d42a3d8c48482dc8174035aaae34c4a9 /src | |
| parent | f873e6b53d61cf056dc85d7bba344a23a9c4e638 (diff) | |
| download | bycs-sol-041665c66685f55a34f00afffb017b21bbe04386.tar.gz bycs-sol-041665c66685f55a34f00afffb017b21bbe04386.zip | |
cockpit: hide / show level change for assigned coaches
Diffstat (limited to 'src')
| -rw-r--r-- | src/cockpit.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cockpit.js b/src/cockpit.js index 8864005..b569d5f 100644 --- a/src/cockpit.js +++ b/src/cockpit.js @@ -145,6 +145,7 @@ async function updateStudentGraduation() { // Only the coach is allowed to graduate if (name === student.graduation.coach) { + document.getElementById("graduation-level-change").style.display = "block"; const levelChangeLvl = document.getElementById("graduation-level-change-level"); levelChangeLvl.value = Math.min(graduation.level + 1, 4); @@ -156,7 +157,7 @@ async function updateStudentGraduation() { updateStudentGraduation(); }; } else { - document.getElementById("graduation-level-change").remove(); + document.getElementById("graduation-level-change").style.display = "hidden"; } const changesTbl = document.getElementById("graduation-changes"); |
