Corrected Color in Error Alert in Whitemode
Added Firstname and Lastname to Customer disabled when company
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user