Changes to Timetracking

This commit is contained in:
2023-12-05 22:18:30 +01:00
parent 0d6357af26
commit 73678f0507
2 changed files with 116 additions and 8 deletions

View File

@@ -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