Added Teams
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 26s
Build and Push Docker Images / build-frontend (push) Successful in 1m7s

Minor Rework of Plantafel
This commit is contained in:
2026-04-14 21:17:05 +02:00
parent 6fcaf3f65c
commit 849e24092e
22 changed files with 773 additions and 81 deletions

View File

@@ -63,6 +63,20 @@ const generateOldItemData = () => {
}
generateOldItemData()
const inputColumnCount = computed(() => {
return Array.isArray(dataType.inputColumns) && dataType.inputColumns.length > 0
? dataType.inputColumns.length
: 1
})
const getInputColumnStyle = () => {
if (props.platform === 'mobile') return undefined
return {
width: `${100 / inputColumnCount.value}%`
}
}
// --- ÄNDERUNG START: Computed Property statt Watcher/Function ---
// Dies berechnet den Status automatisch neu, egal woher die Daten kommen (Init oder User-Eingabe)
@@ -436,7 +450,8 @@ const updateItem = async () => {
<div :class="platform === 'mobile' ?['flex','flex-col'] : ['flex','flex-row']">
<div
v-for="(columnName,index) in dataType.inputColumns"
:class="platform === 'mobile' ? ['w-full'] : [`w-1/${dataType.inputColumns.length}`, ... index < dataType.inputColumns.length -1 ? ['mr-5'] : []]"
:class="platform === 'mobile' ? ['w-full'] : [... index < inputColumnCount - 1 ? ['mr-5'] : []]"
:style="getInputColumnStyle()"
>
<USeparator :label="columnName"/>

View File

@@ -239,6 +239,11 @@ const links = computed(() => {
to: "/standardEntity/branches",
icon: "i-heroicons-building-office-2"
} : null,
featureEnabled("teams") ? {
label: "Teams",
to: "/standardEntity/teams",
icon: "i-heroicons-users"
} : null,
featureEnabled("staffProfiles") ? {
label: "Mitarbeiter",
to: "/staff/profiles",