diff --git a/application/controllers/CisVue/Cms.php b/application/controllers/CisVue/Cms.php index 0263a00c4..a9ff13c53 100644 --- a/application/controllers/CisVue/Cms.php +++ b/application/controllers/CisVue/Cms.php @@ -82,8 +82,9 @@ class Cms extends Auth_Controller * @return void */ public function news($infoscreen = false, $studiengang_kz = null, $semester = null, $mischen = true, $titel = '', $edit = false, $sichtbar = true) - { - $this->load->view('CisRouterView/CisRouterView.php', ['route' => 'News']); + { + $viewData = array(); + $this->load->view('CisRouterView/CisRouterView.php', ['viewData'=>$viewData, 'route' => 'News']); } public function getRoomInformation($ort_kurzbz){ diff --git a/application/controllers/api/frontend/v1/Studgang.php b/application/controllers/api/frontend/v1/Studgang.php index 63579e3a6..82aebb666 100644 --- a/application/controllers/api/frontend/v1/Studgang.php +++ b/application/controllers/api/frontend/v1/Studgang.php @@ -45,8 +45,9 @@ class Studgang extends FHCAPI_Controller public function getStudiengangInfo(){ $isMitarbeiter = $this->MitarbeiterModel->isMitarbeiter(getAuthUID()); + $isMitarbeiter = $this->getDataOrTerminateWithError($isMitarbeiter); if($isMitarbeiter) { - $this->terminateWithSuccess(); + $this->terminateWithSuccess(null); } // fetches the Studiengang Information which is used next to the news diff --git a/public/js/apps/Cis.js b/public/js/apps/Cis.js index 482c2774a..bb4b76ca4 100644 --- a/public/js/apps/Cis.js +++ b/public/js/apps/Cis.js @@ -117,7 +117,6 @@ const app = Vue.createApp({ } } }); -app.use(FhcApi); app.use(primevue.config.default, { zIndex: { overlay: 9000, diff --git a/public/js/apps/Dashboard/Fhc.js b/public/js/apps/Dashboard/Fhc.js index a41cbb3f0..137d1d008 100644 --- a/public/js/apps/Dashboard/Fhc.js +++ b/public/js/apps/Dashboard/Fhc.js @@ -266,7 +266,6 @@ const app = Vue.createApp({ // kind of a bandaid for bad css on some pages to avoid horizontal scroll setScrollbarWidth(); app.use(router); -app.use(FhcApi); app.use(primevue.config.default, { zIndex: { overlay: 9000, diff --git a/public/js/components/Calendar/Calendar.js b/public/js/components/Calendar/Calendar.js index a12dc1b0a..5c2dc8bb0 100644 --- a/public/js/components/Calendar/Calendar.js +++ b/public/js/components/Calendar/Calendar.js @@ -96,6 +96,7 @@ export default { 'select:day', 'select:event', 'change:range', + 'change:mode', 'update:minimized', 'selectedEvent', 'change:offset' diff --git a/public/js/components/Calendar/Day/Page.js b/public/js/components/Calendar/Day/Page.js index f38ea50cd..b339c12fc 100644 --- a/public/js/components/Calendar/Day/Page.js +++ b/public/js/components/Calendar/Day/Page.js @@ -403,25 +403,29 @@ export default {
+
+
+ +

this is a placeholder which means that no template was passed to the Calendar Page slot

+
+
+
+ +

this is a placeholder which means that no template was passed to the Calendar Page slot

+
+
+
+
diff --git a/public/js/components/Calendar/Month.js b/public/js/components/Calendar/Month.js index ab20e2e03..27ec50fbf 100644 --- a/public/js/components/Calendar/Month.js +++ b/public/js/components/Calendar/Month.js @@ -13,6 +13,9 @@ export default { BsModal, Months }, + emits: [ + "change:offset" + ], data() { return { syncOnNextChange: false diff --git a/public/js/components/Calendar/Week.js b/public/js/components/Calendar/Week.js index 4b30a1b79..2cca97a27 100644 --- a/public/js/components/Calendar/Week.js +++ b/public/js/components/Calendar/Week.js @@ -14,6 +14,9 @@ export default { BsModal, Weeks }, + emits: [ + "change:offset" + ], computed: { title() { return this.focusDate.wYear + ' KW ' + this.focusDate.w; @@ -28,7 +31,8 @@ export default { this.$refs.modalDatepickerContainer.hide() }, handleHeaderClickWeek() { - this.$refs.modalDatepickerContainer.show() + this.$emit('updateMode', 'weeks');// + //this.$refs.modalDatepickerContainer.show() }, paneChanged(dir) { this.focusDate.d += dir * 7; diff --git a/public/js/components/Calendar/Week/Page.js b/public/js/components/Calendar/Week/Page.js index dccca6630..1fe82ff0e 100644 --- a/public/js/components/Calendar/Week/Page.js +++ b/public/js/components/Calendar/Week/Page.js @@ -224,22 +224,7 @@ export default { return styleObj }, eventGridStyle(day, event) { - if (event.orig.allDayEvent) - { - return; - return { - 'z-index': '2', - 'grid-column': '1 / -1', - 'background-color': 'rgb(204, 204, 204)', - 'max-height': '75px', - color: 'black', - position: 'sticky', - top: '44px', - }; - } - else - { - return { + return { 'z-index': 1, 'grid-column-start': 1 + (event.lane - 1) * day.lanes / event.maxLane, 'grid-column-end': 1 + event.lane * day.lanes / event.maxLane, @@ -247,8 +232,7 @@ export default { 'grid-row-end': this.dateToMinutesOfDay(event.end), 'background-color': event.orig.color, 'max-height': '75px' - }; - } + }; }, calcHourPosition(event) { let height = this.$refs['eventsRef' + this.week].getBoundingClientRect().height; @@ -363,10 +347,15 @@ export default {