Restructured Workingtimes without date to start and end
Added Page to Edit Workingtimes
This commit is contained in:
@@ -106,6 +106,10 @@ export const useDataStore = defineStore('data', () => {
|
||||
label: "Mitarbeiter",
|
||||
labelSingle: "Mitarbeiter",
|
||||
redirect: true
|
||||
},
|
||||
workingtimes: {
|
||||
label: "Anwesenheiten",
|
||||
labelSingle: "Anwesenheit"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1127,6 +1131,10 @@ export const useDataStore = defineStore('data', () => {
|
||||
return events.value.find(item => item.id === itemId)
|
||||
})
|
||||
|
||||
const getWorkingTimeById = computed(() => (itemId) => {
|
||||
return workingtimes.value.find(item => item.id === itemId)
|
||||
})
|
||||
|
||||
const getProjectById = computed(() => (itemId) => {
|
||||
if(projects.value.find(i => i.id === itemId)) {
|
||||
let project = projects.value.find(project => project.id === itemId)
|
||||
@@ -1295,7 +1303,8 @@ export const useDataStore = defineStore('data', () => {
|
||||
getCreatedDocumentById,
|
||||
getInventoryItemById,
|
||||
getBankAccountById,
|
||||
getEventById
|
||||
getEventById,
|
||||
getWorkingTimeById
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user