Skip to content

Commit

Permalink
Comments added to calendar component
Browse files Browse the repository at this point in the history
  • Loading branch information
Timaqt authored and Timaqt committed Nov 28, 2024
1 parent e75fa1f commit 99cdfcd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/components/calendar/Calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default {
}
},
customEventContent(arg) {
// function to load the content of the event, could be simplified and divided into 3 pieces - am,pm and assignemnt.
// check if this could be simplified and divided into 3 pieces - am,pm and assignemnt.
// video icon could be attached to any of the pieces
if (arg.event.extendedProps.assignment) {
Expand Down Expand Up @@ -75,6 +76,8 @@ export default {
}
}
if (this.isMySchedule) {
// less compact schedule because loads only my events
// check if camera could be for both am and pm and assignment
return {
html: `
<div class="custom-events-container">
Expand All @@ -87,7 +90,7 @@ export default {
};
}
return {
// compact schedule because loads all assignemnts ( adds judge initials)
html: `
<div class="custom-events-container">
${"<div class='city'>" + arg.event.extendedProps.rotaInitials + ' - ' + arg.event.extendedProps.assignment.locationName + "</div>"}
Expand Down

0 comments on commit 99cdfcd

Please sign in to comment.