From af032f5e92a344d2f3fb80aa9d3346fc04797101 Mon Sep 17 00:00:00 2001
From: Julian Leucker <leuckerj@gmail.com>
Date: Tue, 3 Jan 2023 23:03:44 +0100
Subject: [PATCH] =?UTF-8?q?Display=20"=E2=80=93"=20if=20data=20points=20ar?=
 =?UTF-8?q?e=20missing?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../assets/components/person/PersonOverview.vue  | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/aleksis/core/assets/components/person/PersonOverview.vue b/aleksis/core/assets/components/person/PersonOverview.vue
index bcffce119..eb31df0c6 100644
--- a/aleksis/core/assets/components/person/PersonOverview.vue
+++ b/aleksis/core/assets/components/person/PersonOverview.vue
@@ -56,7 +56,7 @@
 
                   <v-list-item-content>
                     <v-list-item-title>
-                      {{ data.person.sex }}
+                      {{ data.person.sex || "–" }}
                     </v-list-item-title>
                   </v-list-item-content>
                 </v-list-item>
@@ -70,7 +70,7 @@
                   </v-list-item-icon>
 
                   <v-list-item-content>
-                    <v-list-item-title>{{ data.person.street }} {{ data.person.housenumber }}</v-list-item-title>
+                    <v-list-item-title>{{ data.person.street || "–" }} {{ data.person.housenumber }}</v-list-item-title>
                     <v-list-item-subtitle>{{ data.person.postalCode }} {{ data.person.place }}</v-list-item-subtitle>
                   </v-list-item-content>
                 </v-list-item>
@@ -86,8 +86,8 @@
                   </v-list-item-icon>
 
                   <v-list-item-content>
-                    <v-list-item-title>{{ data.person.phoneNumber }}</v-list-item-title>
-                    <v-list-item-subtitle>{{ $t("person.home")}}</v-list-item-subtitle>
+                    <v-list-item-title>{{ data.person.phoneNumber || "–"  }}</v-list-item-title>
+                    <v-list-item-subtitle>{{ $t("person.home") }}</v-list-item-subtitle>
                   </v-list-item-content>
                 </v-list-item>
 
@@ -97,8 +97,8 @@
                   <v-list-item-action></v-list-item-action>
 
                   <v-list-item-content>
-                    <v-list-item-title>{{ data.person.mobileNumber }}</v-list-item-title>
-                    <v-list-item-subtitle>{{ $t("person.mobile")}}</v-list-item-subtitle>
+                    <v-list-item-title>{{ data.person.mobileNumber || "–"  }}</v-list-item-title>
+                    <v-list-item-subtitle>{{ $t("person.mobile") }}</v-list-item-subtitle>
                   </v-list-item-content>
                 </v-list-item>
                 <v-divider inset/>
@@ -114,7 +114,7 @@
 
                   <v-list-item-content>
                     <v-list-item-title>
-                      {{ data.person.email }}
+                      {{ data.person.email || "–"  }}
                     </v-list-item-title>
                   </v-list-item-content>
                 </v-list-item>
@@ -128,7 +128,7 @@
                   </v-list-item-icon>
 
                   <v-list-item-content>
-                    <v-list-item-title>{{ $d(new Date(data.person.dateOfBirth), "short") }}</v-list-item-title>
+                    <v-list-item-title>{{ !!data.person.dateOfBirth ? $d(new Date(data.person.dateOfBirth), "short") : "–" }}</v-list-item-title>
                     <v-list-item-subtitle>{{ data.person.placeOfBirth }}</v-list-item-subtitle>
                   </v-list-item-content>
                 </v-list-item>
-- 
GitLab