We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5270b67 commit 9ebc7fcCopy full SHA for 9ebc7fc
1 file changed
frontend/src/pages/Calendar.vue
@@ -473,6 +473,7 @@ interface CalendarDay {
473
dayNumber: number
474
isCurrentMonth: boolean
475
isToday: boolean
476
+ hasCompletedTraining: boolean
477
trainingType: 'workout' | 'activity' | 'both' | null
478
hasScheduledOnly: boolean
479
isFrozenWeek: boolean
@@ -791,6 +792,10 @@ function getTrainingType(events: CalendarEvent[]): 'workout' | 'activity' | 'bot
791
792
return null
793
}
794
795
+function hasCompletedTrainingEvents(events: CalendarEvent[]): boolean {
796
+ return events.some(e => e.type === 'workout' || e.type === 'activity')
797
+}
798
+
799
function hasScheduledOnlyEvents(events: CalendarEvent[]): boolean {
800
return (
801
events.some(e => e.type === 'scheduled') &&
0 commit comments