Added Fullname to Contact Creation

This commit is contained in:
2024-03-12 19:09:03 +01:00
parent 6791342879
commit 85dd60c197

View File

@@ -51,13 +51,13 @@ setupPage()
<template #right> <template #right>
<UButton <UButton
v-if="mode === 'edit'" v-if="mode === 'edit'"
@click="dataStore.updateItem('contacts',itemInfo)" @click="dataStore.updateItem('contacts',{...itemInfo, fullName: itemInfo.firstName + ' ' + itemInfo.lastName})"
> >
Speichern Speichern
</UButton> </UButton>
<UButton <UButton
v-else-if="mode === 'create'" v-else-if="mode === 'create'"
@click="dataStore.createNewItem('contacts',itemInfo)" @click="dataStore.createNewItem('contacts',{...itemInfo, fullName: itemInfo.firstName + ' ' + itemInfo.lastName})"
> >
Erstellen Erstellen
</UButton> </UButton>