From 73678f0507ca8b5ed52ad37189d618147c0efbec Mon Sep 17 00:00:00 2001 From: flfeders Date: Tue, 5 Dec 2023 22:18:30 +0100 Subject: [PATCH] Changes to Timetracking --- spaces/pages/timetracking.vue | 119 +++++++++++++++++++++++++++++++--- spaces/stores/data.ts | 5 ++ 2 files changed, 116 insertions(+), 8 deletions(-) diff --git a/spaces/pages/timetracking.vue b/spaces/pages/timetracking.vue index db5b51c..bbc6abf 100644 --- a/spaces/pages/timetracking.vue +++ b/spaces/pages/timetracking.vue @@ -1,27 +1,130 @@ - diff --git a/spaces/stores/data.ts b/spaces/stores/data.ts index ef306c7..e8b7fee 100644 --- a/spaces/stores/data.ts +++ b/spaces/stores/data.ts @@ -43,6 +43,7 @@ export const useDataStore = defineStore('data', { await this.fetchProjects() await this.fetchDocuments() await this.fetchMovements() + await this.fetchTimes() await this.fetchSpaces() await this.fetchVehicles() this.loaded = true @@ -100,6 +101,10 @@ export const useDataStore = defineStore('data', { // @ts-ignore this.vehicles = (await supabase.from("vehicles").select()).data }, + async fetchTimes() { + // @ts-ignore + this.times = (await supabase.from("times").select()).data + }, async fetchDocuments() { // @ts-ignore this.documents = (await supabase.from("documents").select()).data