diff --git a/public/js/apps/Cis.js b/public/js/apps/Cis.js index da658dc47..482c2774a 100644 --- a/public/js/apps/Cis.js +++ b/public/js/apps/Cis.js @@ -27,13 +27,12 @@ const app = Vue.createApp({ defaultaction: { type: "link", action: function(data) { - return FHC_JS_DATA_STORAGE_OBJECT.app_root + FHC_JS_DATA_STORAGE_OBJECT.ci_router+ - "/Cis/Profil/View/"+data.uid; - - } - }, + return FHC_JS_DATA_STORAGE_OBJECT.app_root + FHC_JS_DATA_STORAGE_OBJECT.ci_router+ + "/Cis/Profil/View/"+data.uid; + } + }, childactions: [] - }, + }, student: { defaultaction: { type: "link", @@ -115,7 +114,7 @@ const app = Vue.createApp({ methods: { searchfunction: function(searchsettings) { return Vue.$fhcapi.search.search(searchsettings); - }, + } } }); app.use(FhcApi); diff --git a/public/js/components/Calendar/Day/Page.js b/public/js/components/Calendar/Day/Page.js index fbd3307a8..f545c61ae 100644 --- a/public/js/components/Calendar/Day/Page.js +++ b/public/js/components/Calendar/Day/Page.js @@ -348,9 +348,9 @@ export default { -
this is a slot placeholder
diff --git a/public/js/components/Calendar/Month/Page.js b/public/js/components/Calendar/Month/Page.js index 78302b154..a52a94b55 100644 --- a/public/js/components/Calendar/Month/Page.js +++ b/public/js/components/Calendar/Month/Page.js @@ -1,6 +1,7 @@ import CalendarDate from '../../../composables/CalendarDate.js'; export default { + name: 'MonthPage', data(){ return{ highlightedWeek: null, @@ -60,6 +61,18 @@ export default { }, methods: { + getDayClass(week, day) { + let classstring = 'fhc-calendar-month-page-day text-decoration-none overflow-hidden' + const isHighlighted = this.isHighlighted(week, day) + const isThisDate = this.date.compare(day) + const isNotThisMonth = day.getMonth() != this.month + const isInThePast = this.date.isInPast(day) + if(isHighlighted) classstring += ' fhc-calendar-month-page-day-highlight' + if(isThisDate) classstring += ' active' + if(isNotThisMonth || isInThePast) classstring += ' opacity-50' + + return classstring + }, selectDay(day) { this.date.set(day); this.$emit('input', day); @@ -72,6 +85,7 @@ export default { } }, highlight(week, day){ + console.log('highlight method') this.highlightedWeek = week.no; this.highlightedDay = day; }, @@ -97,9 +111,17 @@ export default {