From 23ebbe7a856e09950433d3d67dee9f1f4443ed5c Mon Sep 17 00:00:00 2001 From: ajdj100 Date: Thu, 20 Nov 2025 11:08:57 -0500 Subject: [PATCH] update report list on submit --- ui/src/pages/TrainingReport.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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 - }}

+ }}

- +