Corrected Color in Error Alert in Whitemode

Added Firstname and Lastname to Customer disabled when company
This commit is contained in:
2025-01-29 18:10:59 +01:00
parent 7ea5da8d0f
commit 61de673741
2 changed files with 38 additions and 5 deletions

View File

@@ -156,9 +156,42 @@ export const useDataStore = defineStore('data', () => {
inputType: "text"
}, {
key: "name",
label: "Name",
label: "Firmenname",
title: true,
inputType: "text"
inputType: "text",
disabledFunction: function (item) {
return !item.isCompany
},
},{
key: "firstname",
label: "Vorname",//TODO: Add Conditional Rendering to Datatypes
title: true,
inputType: "text",
inputChangeFunction: function (row) {
if(row.firstname && row.lastname) {
row.name = `${row.firstname} ${row.lastname}`
} else {
row.name = row.firstname
}
},
disabledFunction: function (item) {
return item.isCompany
},
},{
key: "lastname",
label: "Nachname",
title: true,
inputType: "text",
inputChangeFunction: function (row) {
if(row.firstname && row.lastname) {
row.name = `${row.firstname} ${row.lastname}`
} else {
row.name = row.lastname
}
},
disabledFunction: function (item) {
return item.isCompany
},
}, {
key: "isCompany",
label: "Firmenkunde",