From d6f257bcc6b146f74ea0be282f5ecdadf6815833 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Wed, 21 Jan 2026 10:52:56 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20f=C3=BCr=20#71?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/stores/data.js | 56 +++-------------------------------------- 1 file changed, 4 insertions(+), 52 deletions(-) diff --git a/frontend/stores/data.js b/frontend/stores/data.js index b311193..42484ba 100644 --- a/frontend/stores/data.js +++ b/frontend/stores/data.js @@ -230,19 +230,7 @@ export const useDataStore = defineStore('data', () => { label: "Anrede", inputType: "text", inputChangeFunction: function (row) { - row.name = "" - if(row.salutation) { - row.name += `${row.salutation}` - } - if(row.title) { - row.name += ` ${row.title}` - } - if(row.firstname) { - row.name += ` ${row.firstname}` - } - if(row.lastname) { - row.name += ` ${row.lastname}` - } + row.name = `${row.salutation + " "}${row.title+ " "}${row.firstname+ " "}${row.lastname}`; }, disabledFunction: function (item) { return item.isCompany @@ -258,19 +246,7 @@ export const useDataStore = defineStore('data', () => { label: "Titel", inputType: "text", inputChangeFunction: function (row) { - row.name = "" - if(row.salutation) { - row.name += `${row.salutation}` - } - if(row.title) { - row.name += ` ${row.title}` - } - if(row.firstname) { - row.name += ` ${row.firstname}` - } - if(row.lastname) { - row.name += ` ${row.lastname}` - } + row.name = `${row.salutation + " "}${row.title+ " "}${row.firstname+ " "}${row.lastname}`; }, disabledFunction: function (item) { return item.isCompany @@ -285,19 +261,7 @@ export const useDataStore = defineStore('data', () => { title: true, inputType: "text", inputChangeFunction: function (row) { - row.name = "" - if(row.salutation) { - row.name += `${row.salutation}` - } - if(row.title) { - row.name += ` ${row.title}` - } - if(row.firstname) { - row.name += ` ${row.firstname}` - } - if(row.lastname) { - row.name += ` ${row.lastname}` - } + row.name = `${row.salutation + " "}${row.title+ " "}${row.firstname+ " "}${row.lastname}`; }, disabledFunction: function (item) { return item.isCompany @@ -312,19 +276,7 @@ export const useDataStore = defineStore('data', () => { title: true, inputType: "text", inputChangeFunction: function (row) { - row.name = "" - if(row.salutation) { - row.name += `${row.salutation}` - } - if(row.title) { - row.name += ` ${row.title}` - } - if(row.firstname) { - row.name += ` ${row.firstname}` - } - if(row.lastname) { - row.name += ` ${row.lastname}` - } + row.name = `${row.salutation + " "}${row.title+ " "}${row.firstname+ " "}${row.lastname}`; }, disabledFunction: function (item) { return item.isCompany