diff --git a/frontend/src/components/diary/DiaryOverviewPanels.vue b/frontend/src/components/diary/DiaryOverviewPanels.vue index 9d49031c..38391382 100644 --- a/frontend/src/components/diary/DiaryOverviewPanels.vue +++ b/frontend/src/components/diary/DiaryOverviewPanels.vue @@ -127,3 +127,190 @@ export default { emits: ['toggle-panel', 'update-training-times', 'update:training-start', 'update:training-end', 'edit-group', 'update-group-field', 'save-group', 'cancel-edit-group', 'delete-group', 'update:new-group-count', 'create-groups'] }; + + diff --git a/frontend/src/views/DiaryView.vue b/frontend/src/views/DiaryView.vue index c1065dbe..d7f05c96 100644 --- a/frontend/src/views/DiaryView.vue +++ b/frontend/src/views/DiaryView.vue @@ -1094,14 +1094,16 @@ export default { return !hasTrainingPlan && !hasParticipants && !hasActivities && !hasAccidents && !hasNotes; }, diaryTimeRangeLabel() { - if (this.trainingStart && this.trainingEnd) { - return `${this.trainingStart} - ${this.trainingEnd}`; + const formattedStart = this.formatDisplayTime(this.trainingStart); + const formattedEnd = this.formatDisplayTime(this.trainingEnd); + if (formattedStart && formattedEnd) { + return `${formattedStart} - ${formattedEnd}`; } - if (this.trainingStart) { - return this.trainingStart; + if (formattedStart) { + return formattedStart; } - if (this.trainingEnd) { - return this.trainingEnd; + if (formattedEnd) { + return formattedEnd; } return this.$t('diary.trainingWindowUnset'); },