diff --git a/ui/src/pages/TrainingReport.vue b/ui/src/pages/TrainingReport.vue index 1211956..1809e86 100644 --- a/ui/src/pages/TrainingReport.vue +++ b/ui/src/pages/TrainingReport.vue @@ -44,8 +44,12 @@ function createTrainingReport() { sidePanel.value = sidePanelState.create; } -onMounted(async () => { +async function loadTrainingReports() { trainingReports.value = await getTrainingReports(); +} + +onMounted(async () => { + loadTrainingReports(); loaded.value = true; }) @@ -78,7 +82,7 @@ onMounted(async () => { {{ report.date }} {{ report.created_by_name === null ? "Unknown User" : report.created_by_name - }} + }} @@ -92,7 +96,7 @@ onMounted(async () => {

{{ focusedTrainingReport.event_date }}

Created by {{ focusedTrainingReport.created_by_name === null ? "Unknown User" : focusedTrainingReport.created_by_name - }}

+ }}

- +