Added Teams
Minor Rework of Plantafel
This commit is contained in:
@@ -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"/>
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user