From ec002cc020b4b384f74d0db6aaac10e2a7be2173 Mon Sep 17 00:00:00 2001 From: Matthew Huntington Date: Sat, 24 Aug 2024 20:13:07 +0200 Subject: [PATCH] show category for practice session just logged --- src/App.vue | 6 ++++-- src/components/show_category.vue | 1 + src/components/timer.vue | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index d825bff..ab99c77 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,14 +10,16 @@ const currentWorkingCategoryID = ref(1) const summaryRef = ref(null) const statusRef = ref(null) + const showCategoryRef = ref(null) const updateCurrentWorkingCategoryID = (id) =>{ currentWorkingCategoryID.value = id } - const refreshPage = () => { + const refreshPage = (session) => { summaryRef.value.loadData() statusRef.value.loadData() + showCategoryRef.value.loadCategory(session.practice_category_id) } @@ -32,7 +34,7 @@
- +
diff --git a/src/components/show_category.vue b/src/components/show_category.vue index 0e563cc..91ce879 100644 --- a/src/components/show_category.vue +++ b/src/components/show_category.vue @@ -32,6 +32,7 @@ }) watch(currentWorkingCategoryID, loadCategory) + defineExpose ({loadCategory})