Fixed #71
This commit is contained in:
@@ -230,7 +230,7 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
label: "Anrede",
|
label: "Anrede",
|
||||||
inputType: "text",
|
inputType: "text",
|
||||||
inputChangeFunction: function (row) {
|
inputChangeFunction: function (row) {
|
||||||
row.name = `${row.salutation + " "}${row.title+ " "}${row.firstname+ " "}${row.lastname}`;
|
row.name = `${row.salutation.length > 0 ? (row.salutation + " ") : ""}${row.title.length > 0 ? (row.title + " ") : ""}${row.firstname.length > 0 ? (row.firstname + " ") : ""}${row.lastname}`;
|
||||||
},
|
},
|
||||||
disabledFunction: function (item) {
|
disabledFunction: function (item) {
|
||||||
return item.isCompany
|
return item.isCompany
|
||||||
@@ -246,7 +246,7 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
label: "Titel",
|
label: "Titel",
|
||||||
inputType: "text",
|
inputType: "text",
|
||||||
inputChangeFunction: function (row) {
|
inputChangeFunction: function (row) {
|
||||||
row.name = `${row.salutation + " "}${row.title+ " "}${row.firstname+ " "}${row.lastname}`;
|
row.name = `${row.salutation.length > 0 ? (row.salutation + " ") : ""}${row.title.length > 0 ? (row.title + " ") : ""}${row.firstname.length > 0 ? (row.firstname + " ") : ""}${row.lastname}`;
|
||||||
},
|
},
|
||||||
disabledFunction: function (item) {
|
disabledFunction: function (item) {
|
||||||
return item.isCompany
|
return item.isCompany
|
||||||
@@ -261,7 +261,7 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
title: true,
|
title: true,
|
||||||
inputType: "text",
|
inputType: "text",
|
||||||
inputChangeFunction: function (row) {
|
inputChangeFunction: function (row) {
|
||||||
row.name = `${row.salutation + " "}${row.title+ " "}${row.firstname+ " "}${row.lastname}`;
|
row.name = `${row.salutation.length > 0 ? (row.salutation + " ") : ""}${row.title.length > 0 ? (row.title + " ") : ""}${row.firstname.length > 0 ? (row.firstname + " ") : ""}${row.lastname}`;
|
||||||
},
|
},
|
||||||
disabledFunction: function (item) {
|
disabledFunction: function (item) {
|
||||||
return item.isCompany
|
return item.isCompany
|
||||||
@@ -276,7 +276,7 @@ export const useDataStore = defineStore('data', () => {
|
|||||||
title: true,
|
title: true,
|
||||||
inputType: "text",
|
inputType: "text",
|
||||||
inputChangeFunction: function (row) {
|
inputChangeFunction: function (row) {
|
||||||
row.name = `${row.salutation + " "}${row.title+ " "}${row.firstname+ " "}${row.lastname}`;
|
row.name = `${row.salutation.length > 0 ? (row.salutation + " ") : ""}${row.title.length > 0 ? (row.title + " ") : ""}${row.firstname.length > 0 ? (row.firstname + " ") : ""}${row.lastname}`;
|
||||||
},
|
},
|
||||||
disabledFunction: function (item) {
|
disabledFunction: function (item) {
|
||||||
return item.isCompany
|
return item.isCompany
|
||||||
|
|||||||
Reference in New Issue
Block a user