diff --git a/anwendung/src/components/CalenderView.jsx b/anwendung/src/components/CalenderView.jsx index 24e0d48..115ba4c 100644 --- a/anwendung/src/components/CalenderView.jsx +++ b/anwendung/src/components/CalenderView.jsx @@ -43,7 +43,7 @@ export default function CalenderView(p) { "usercreatedbyid": localStorage.getItem("userid"), "timestart": row, "timeend": row + 3, - "info": "" + "info": localStorage.getItem("currentmodulename") } fetch(url, { method: "POST", @@ -250,6 +250,8 @@ export default function CalenderView(p) { let url = baseURL + "/semester/id?sessionid=" + localStorage.getItem("sessionid") + "&id=" + localStorage.getItem("currentsid"); + console.log(localStorage.getItem("currentsid")) + fetch(url).then(r => r.json()).then(s => { currentWeekStartDay = s.startday - new Date(s.startyear, 0, s.startday).getUTCDay(); currentYear = s.startyear; @@ -363,7 +365,7 @@ export default function CalenderView(p) { }}>
{internal_to_time(d.timestart) + " - " + internal_to_time(d.timeend)}
-Modul
+{d.info}
{internal_to_time(d.timestart) + " - " + internal_to_time(d.timeend)}
-Modul
+{d.info}
{internal_to_time(d.timestart) + " - " + internal_to_time(d.timeend)}
-Modul
+{d.info}
{internal_to_time(d.timestart) + " - " + internal_to_time(d.timeend)}
-Moduel etc.
+{d.info}
{internal_to_time(d.timestart) + " - " + internal_to_time(d.timeend)}
-Modul
+{d.info}
{internal_to_time(d.timestart) + " - " + internal_to_time(d.timeend)}
-Modul
+{d.info}