From 693313a23bb60d308ae859ff96215af49aa58e4e Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Thu, 19 Sep 2024 09:35:36 +0200 Subject: [PATCH] renames/reuses lv-modal and fixes bugs associated with the modal --- public/js/apps/Cis/Stundenplan.js | 18 +++++++++--------- .../CalendarModal.js => Cis/Mylv/LvModal.js} | 6 +++--- .../components/DashboardWidget/Stundenplan.js | 8 ++++---- 3 files changed, 16 insertions(+), 16 deletions(-) rename public/js/components/{Calendar/CalendarModal.js => Cis/Mylv/LvModal.js} (96%) diff --git a/public/js/apps/Cis/Stundenplan.js b/public/js/apps/Cis/Stundenplan.js index 0a899f16b..ae36c0d6c 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"; +import LvModal from "../../components/Cis/Mylv/LvModal.js"; const app = Vue.createApp({ data() { @@ -14,7 +14,7 @@ const app = Vue.createApp({ }, components: { FhcCalendar, - CalendarModal + LvModal }, computed:{ weekFirstDay: function () { @@ -35,7 +35,7 @@ const app = Vue.createApp({ showModal: function(event){ this.currentlySelectedEvent = event; Vue.nextTick(() => { - this.$refs.calendarModal.show(); + this.$refs.lvmodal.show(); }); }, updateRange: function (data) { @@ -96,13 +96,13 @@ const app = Vue.createApp({ template:/*html*/`

Stundenplan


- + -
- {{event.orig.topic}} - {{lektor.kurzbz}} - {{event.orig.ort_kurzbz}} -
+
+ {{event?.orig.topic}} + {{lektor.kurzbz}} + {{event?.orig.ort_kurzbz}} +
` }); diff --git a/public/js/components/Calendar/CalendarModal.js b/public/js/components/Cis/Mylv/LvModal.js similarity index 96% rename from public/js/components/Calendar/CalendarModal.js rename to public/js/components/Cis/Mylv/LvModal.js index fb2889eae..472a1e05c 100644 --- a/public/js/components/Calendar/CalendarModal.js +++ b/public/js/components/Cis/Mylv/LvModal.js @@ -1,6 +1,6 @@ -import BsModal from "../Bootstrap/Modal.js"; -import Alert from "../Bootstrap/Alert.js"; -import LvMenu from "../Cis/Mylv/LvMenu.js" +import BsModal from "../../Bootstrap/Modal.js"; +import Alert from "../../Bootstrap/Alert.js"; +import LvMenu from "./LvMenu.js" export default { components: { diff --git a/public/js/components/DashboardWidget/Stundenplan.js b/public/js/components/DashboardWidget/Stundenplan.js index 3c8610422..8a891cc59 100755 --- a/public/js/components/DashboardWidget/Stundenplan.js +++ b/public/js/components/DashboardWidget/Stundenplan.js @@ -1,7 +1,7 @@ import Phrasen from '../../mixins/Phrasen.js'; import AbstractWidget from './Abstract.js'; import FhcCalendar from '../Calendar/Calendar.js'; -import LvUebersicht from '../Cis/Mylv/LvUebersicht.js'; +import LvModal from '../Cis/Mylv/LvModal.js'; import ContentModal from '../Cis/Cms/ContentModal.js' import CalendarDate from '../../composables/CalendarDate.js'; @@ -12,7 +12,7 @@ export default { ], components: { FhcCalendar, - LvUebersicht, + LvModal, ContentModal, }, @@ -73,7 +73,7 @@ export default { showLvUebersicht: function (event){ this.selectedEvent= event; Vue.nextTick(()=>{ - this.$refs.lvUebersicht.show(); + this.$refs.lvmodal.show(); }); }, @@ -167,7 +167,7 @@ export default { }, template: /*html*/`
- +