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