From 6e1943928a7c51046a58028a9b0c233ae838be23 Mon Sep 17 00:00:00 2001 From: SimonGschnell Date: Wed, 27 Nov 2024 15:04:56 +0100 Subject: [PATCH] feature(Cms/Content_types/Raum_contentmittitel.js): wraps the h1 title of the content with a link to the Reservierungen of that room --- public/js/components/Cis/Cms/Content.js | 2 +- public/js/components/Cis/Cms/ContentModal.js | 8 ++--- .../Cms/Content_types/Raum_contentmittitel.js | 31 +++++++++++++++++++ .../components/DashboardWidget/Stundenplan.js | 2 +- 4 files changed, 37 insertions(+), 6 deletions(-) diff --git a/public/js/components/Cis/Cms/Content.js b/public/js/components/Cis/Cms/Content.js index 914b35106..2ba999007 100644 --- a/public/js/components/Cis/Cms/Content.js +++ b/public/js/components/Cis/Cms/Content.js @@ -53,7 +53,7 @@ export default { }, template: /*html*/ ` - +

No content is available to display

`, }; diff --git a/public/js/components/Cis/Cms/ContentModal.js b/public/js/components/Cis/Cms/ContentModal.js index b1b46530f..87aaf98f9 100644 --- a/public/js/components/Cis/Cms/ContentModal.js +++ b/public/js/components/Cis/Cms/ContentModal.js @@ -12,7 +12,7 @@ export default { RaumContent, }, props:{ - contentID:{ + content_id:{ type: Number }, ort_kurzbz:{ @@ -34,8 +34,8 @@ export default { // this method is always called when the modal is shown modalShown: function(){ - if(this.contentID){ - this.$fhcApi.factory.cms.content(this.contentID).then(res =>{ + if(this.content_id){ + this.$fhcApi.factory.cms.content(this.content_id).then(res =>{ this.content = res.data.content; this.type = res.data.type; @@ -55,7 +55,7 @@ export default { Raum Informationen