diff --git a/public/js/components/Cis/LvPlan/LvPlan.js b/public/js/components/Cis/LvPlan/LvPlan.js index 01b026fdd..25538bc33 100644 --- a/public/js/components/Cis/LvPlan/LvPlan.js +++ b/public/js/components/Cis/LvPlan/LvPlan.js @@ -1,4 +1,5 @@ import FhcCalendar from "../../Calendar/Base.js"; + import ApiLvPlan from '../../../api/factory/lvPlan.js'; import ApiAuthinfo from '../../../api/factory/authinfo.js'; @@ -23,6 +24,7 @@ export default { propsViewData: Object }, data() { + const now = luxon.DateTime.now().setZone(this.viewData.timezone); return { modes: { day: Vue.markRaw(ModeDay), @@ -41,11 +43,17 @@ export default { }, currentDay: this.propsViewData?.focus_date, calendarMode: this.propsViewData?.mode ?? DEFAULT_MODE_LVPLAN, - + backgrounds: [ + { + class: 'background-past', + end: now, + label: now.startOf('minute').toISOTime({ suppressSeconds: true, includeOffset: false }) + } + ], studiensemester_kurzbz: null, studiensemester_start: null, studiensemester_ende: null, - uid: null, + uid: null }; }, computed:{ @@ -151,9 +159,6 @@ export default { .then(res => { this.uid = res.data.uid; }); - /*window.addEventListener("resize", () => { - this.modeOptions.day.compact = document.body.offsetWidth < 1200; - });*/ }, template:/*html*/`