diff --git a/front-end/src/components/Controls.vue b/front-end/src/components/Controls.vue
index 347cd6e..951734c 100644
--- a/front-end/src/components/Controls.vue
+++ b/front-end/src/components/Controls.vue
@@ -8,10 +8,12 @@ import { inject, ref } from "vue";
const modalTotalHours = ref<{
hours: { [project: string]: number };
+ period: string;
total: number;
visible: boolean;
}>({
hours: {},
+ period: "",
total: 0,
visible: false,
});
@@ -35,7 +37,7 @@ async function showModalTotalHours() {
const response = await pb.send(`/hours/${organisation}/${year}/${monthDoubleDigit}`, {});
- console.log(response);
+ modalTotalHours.value.period = `${monthDoubleDigit}/${year}`;
if (response.error === null) {
let total = 0.0;
@@ -57,7 +59,7 @@ async function showModalTotalHours() {
-