diff --git a/public/js/apps/Cis/Stundenplan.js b/public/js/apps/Cis/Stundenplan.js index c08e79358..0a899f16b 100755 --- a/public/js/apps/Cis/Stundenplan.js +++ b/public/js/apps/Cis/Stundenplan.js @@ -1,7 +1,7 @@ import FhcCalendar from "../../components/Calendar/Calendar.js"; import Phrasen from "../../plugin/Phrasen.js"; import CalendarDate from "../../composables/CalendarDate.js"; - +import CalendarModal from "../../components/Calendar/CalendarModal.js"; const app = Vue.createApp({ data() { @@ -9,11 +9,12 @@ const app = Vue.createApp({ stunden: [], events: null, calendarDate: new CalendarDate(new Date()), - + currentlySelectedEvent: null, } }, components: { - FhcCalendar + FhcCalendar, + CalendarModal }, computed:{ weekFirstDay: function () { @@ -31,6 +32,12 @@ const app = Vue.createApp({ }, methods:{ + showModal: function(event){ + this.currentlySelectedEvent = event; + Vue.nextTick(() => { + this.$refs.calendarModal.show(); + }); + }, updateRange: function (data) { let tmp_date = new CalendarDate(data.start); // only load month data if the month or year has changed @@ -89,8 +96,9 @@ const app = Vue.createApp({ template:/*html*/`