Deprecated absencerequests as non Standard Entity
Added Respective Rights Changes to show title
This commit is contained in:
@@ -76,8 +76,6 @@ const loadOptions = async () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log(optionsToLoad)
|
|
||||||
|
|
||||||
for await(const option of optionsToLoad) {
|
for await(const option of optionsToLoad) {
|
||||||
if(option.option === "countrys") {
|
if(option.option === "countrys") {
|
||||||
loadedOptions.value[option.option] = (await supabase.from("countrys").select()).data
|
loadedOptions.value[option.option] = (await supabase.from("countrys").select()).data
|
||||||
@@ -91,8 +89,6 @@ const loadOptions = async () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(loadedOptions.value)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
loadOptions()
|
loadOptions()
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ const renderedPhases = computed(() => {
|
|||||||
<h1
|
<h1
|
||||||
v-if="item"
|
v-if="item"
|
||||||
:class="['text-xl','font-medium']"
|
:class="['text-xl','font-medium']"
|
||||||
>{{item ? `${dataType.labelSingle}: ${props.item[dataType.templateColumns.find(i => i.title).key]}`: '' }}</h1>
|
>{{item ? `${dataType.labelSingle}${props.item[dataType.templateColumns.find(i => i.title).key] ? ': ' + props.item[dataType.templateColumns.find(i => i.title).key] : ''}`: '' }}</h1>
|
||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<ButtonWithConfirm
|
<ButtonWithConfirm
|
||||||
|
|||||||
@@ -102,11 +102,11 @@ const links = computed(() => {
|
|||||||
to: "/workingtimes",
|
to: "/workingtimes",
|
||||||
icon: "i-heroicons-clock"
|
icon: "i-heroicons-clock"
|
||||||
}] : [],
|
}] : [],
|
||||||
{
|
... role.checkRight("absencerequests") ? [{
|
||||||
label: "Abwesenheiten",
|
label: "Abwesenheiten",
|
||||||
to: "/absenceRequests",
|
to: "/standardEntity/absencerequests",
|
||||||
icon: "i-heroicons-document-text"
|
icon: "i-heroicons-document-text"
|
||||||
},
|
}] : [],
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
... profileStore.ownTenant.features.accounting ? [{
|
... profileStore.ownTenant.features.accounting ? [{
|
||||||
|
|||||||
@@ -148,6 +148,18 @@ export const useRole = () => {
|
|||||||
label: "Inventarartikel erstellen",
|
label: "Inventarartikel erstellen",
|
||||||
parent: "inventoryitems"
|
parent: "inventoryitems"
|
||||||
},
|
},
|
||||||
|
absencerequests: {
|
||||||
|
label: "Abwesenheiten",
|
||||||
|
showToAllUsers: false
|
||||||
|
},
|
||||||
|
"absencerequests-viewAll": {
|
||||||
|
label: "Alle Abwesenheiten einsehen",
|
||||||
|
parent: "absencerequests"
|
||||||
|
},
|
||||||
|
"absencerequests-create": {
|
||||||
|
label: "Abwesenheiten erstellen",
|
||||||
|
parent: "absencerequests"
|
||||||
|
},
|
||||||
spaces: {
|
spaces: {
|
||||||
label: "Lagerplätze",
|
label: "Lagerplätze",
|
||||||
showToAllUsers: false
|
showToAllUsers: false
|
||||||
|
|||||||
@@ -373,7 +373,59 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
absencerequests: {
|
absencerequests: {
|
||||||
label: "Abwesenheitsanträge",
|
label: "Abwesenheitsanträge",
|
||||||
labelSingle: "Abwesenheitsantrag",
|
labelSingle: "Abwesenheitsantrag",
|
||||||
redirect:true
|
isStandardEntity: true,
|
||||||
|
supabaseSelectWithInformation: "*",
|
||||||
|
redirect:true,
|
||||||
|
filters:[],
|
||||||
|
templateColumns:[
|
||||||
|
{
|
||||||
|
key: "approved",
|
||||||
|
label: "Genehmigt",
|
||||||
|
inputType: "select",
|
||||||
|
selectManualOptions: ["Offen","Genehmigt", "Abgelehnt"]
|
||||||
|
},{
|
||||||
|
key: "name",
|
||||||
|
label: "Name",
|
||||||
|
inputType: "text",
|
||||||
|
title: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: "profile",
|
||||||
|
label: "Mitarbeiter",
|
||||||
|
inputType: "select",
|
||||||
|
selectDataType: "profiles",
|
||||||
|
selectOptionAttribute: "fullName",
|
||||||
|
selectSearchAttributes: ['fullName'],
|
||||||
|
component: profile
|
||||||
|
},{
|
||||||
|
key: "reason",
|
||||||
|
label: "Grund",
|
||||||
|
inputType: "select",
|
||||||
|
selectManualOptions: ["Elternzeit",
|
||||||
|
"Kind krank - Kinderbetreuung",
|
||||||
|
"Krankheit",
|
||||||
|
"Krankheit 1 Tag (mit Attest)",
|
||||||
|
"Krankheit ab 2. Tag (mit Attest)",
|
||||||
|
"Mutterschutz",
|
||||||
|
"Sonderurlaub (bezahlt)",
|
||||||
|
"Überstundenausgleich",
|
||||||
|
"Unbezahlter Urlaub",
|
||||||
|
"Urlaub"]
|
||||||
|
},{
|
||||||
|
key: "startDate",
|
||||||
|
label: "Start",
|
||||||
|
inputType: "date"
|
||||||
|
},{
|
||||||
|
key: "endDate",
|
||||||
|
label: "Ende",
|
||||||
|
inputType: "date"
|
||||||
|
},{
|
||||||
|
key: "note",
|
||||||
|
label: "Notizen",
|
||||||
|
inputType: "textarea"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
showTabs: [{label: 'Informationen'}]
|
||||||
},
|
},
|
||||||
plants: {
|
plants: {
|
||||||
label: "Objekte",
|
label: "Objekte",
|
||||||
|
|||||||
Reference in New Issue
Block a user