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})
diff --git a/src/components/timer.vue b/src/components/timer.vue
index af70d9c..6cd8241 100644
--- a/src/components/timer.vue
+++ b/src/components/timer.vue
@@ -49,7 +49,7 @@
this.comments = null;
this.secondsToSubtract = 0;
window.localStorage.setItem('lastTotalSeconds', this.totalSeconds);
- this.$emit('loggedTime')
+ this.$emit('loggedTime', reqBody)
});
},