diff --git a/src/components/mins_left_to_practice_today.vue b/src/components/mins_left_to_practice_today.vue
index 3c962f8..18ce5ab 100644
--- a/src/components/mins_left_to_practice_today.vue
+++ b/src/components/mins_left_to_practice_today.vue
@@ -7,6 +7,13 @@
time_left:0
}
},
+ methods: {
+ refresh(){
+ axios.get(import.meta.env.VITE_PRACTICE_TRACKER_API_URL+'mins-left-to-practice-today').then((response)=>{
+ this.time_left= response.data.time_left;
+ })
+ }
+ },
mounted() {
axios.get(import.meta.env.VITE_PRACTICE_TRACKER_API_URL+'mins-left-to-practice-today').then((response)=>{
this.time_left= response.data.time_left;
@@ -16,7 +23,7 @@
- Mins Left to Practice Today
+ Mins Left to Practice Today
{{time_left}}
diff --git a/src/components/summary.vue b/src/components/summary.vue
index 8182426..2836952 100644
--- a/src/components/summary.vue
+++ b/src/components/summary.vue
@@ -7,6 +7,13 @@
categories:[]
}
},
+ methods: {
+ refresh(){
+ axios.get(import.meta.env.VITE_PRACTICE_TRACKER_API_URL+'summary').then((response)=>{
+ this.categories = response.data
+ })
+ }
+ },
mounted() {
axios.get(import.meta.env.VITE_PRACTICE_TRACKER_API_URL+'summary').then((response)=>{
this.categories = response.data
@@ -17,7 +24,7 @@
- Summary
+ Summary