diff --git a/public/js/apps/Cis/Stundenplan.js b/public/js/apps/Cis/Stundenplan.js index cb019952c..6835dc3a3 100644 --- a/public/js/apps/Cis/Stundenplan.js +++ b/public/js/apps/Cis/Stundenplan.js @@ -32,6 +32,17 @@ const app = Vue.createApp({ monthLastDay: function () { return this.calendarDateToString(this.calendarDate.cdLastDayOfCalendarMonth); }, + // returns the hour of the earliest event + eventsBeginnTime: function(){ + if(this.events && Array.isArray(this.events) && this.events.length > 0) + { + return parseInt(this.events.sort((a, b) => parseInt(a.beginn) - parseInt(b.beginn))[0].beginn); + } + else + { + return null; + } + }, }, methods:{ selectDay: function(day){ @@ -98,15 +109,20 @@ const app = Vue.createApp({ }); }, }, - created(){ + created() + { this.loadEvents(); + }, + mounted() + { + }, //TODO: Stundenplan phrase template:/*html*/`

Stundenplan


- +