diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2026-07-01 16:23:59 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2026-07-01 16:23:59 +0200 |
| commit | 10b81f7b0db87bbca9f431b4e9fa3a85aaf03f7b (patch) | |
| tree | f8bb08df8a778b744dc2db7413bf67550b947047 /cockpit/js | |
| parent | 2cb45f6dea0e3db8103f7f8121a93de413dcee7f (diff) | |
| download | bycs-sol-10b81f7b0db87bbca9f431b4e9fa3a85aaf03f7b.tar.gz bycs-sol-10b81f7b0db87bbca9f431b4e9fa3a85aaf03f7b.zip | |
util: add getName if the separation between first and lastname is not needed
Diffstat (limited to 'cockpit/js')
| -rw-r--r-- | cockpit/js/cockpit.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cockpit/js/cockpit.js b/cockpit/js/cockpit.js index f8ee8e9..7503f32 100644 --- a/cockpit/js/cockpit.js +++ b/cockpit/js/cockpit.js @@ -13,7 +13,7 @@ import { import { fetchStudent, fetchStudents } from "../../js/student-ENV.js"; import { isTeacher as getIsTeacher, - getCurrentName, + getFirstAndLastname, getUserId, } from "../../js/utils-ENV.js"; import { initSelection } from "../../js/selection.js"; @@ -293,6 +293,6 @@ async function initCockpit() { window.onload = function() { isTeacher = getIsTeacher(); DEFAULT_STUDENT_ICON = document.getElementById("student-info-icon").src; - [firstname, lastname] = getCurrentName(); + [firstname, lastname] = getFirstAndLastname(); initCockpit(); } |
