solves Telefon displaying as null for some benutzer

This commit is contained in:
SimonGschnell
2024-09-17 09:28:11 +02:00
parent e1c395146b
commit 61e6ad063a
3 changed files with 6 additions and 10 deletions
@@ -226,10 +226,8 @@ export default {
Geburtsdatum: this.data.gebdatum,
Geburtsort: this.data.gebort,
Kurzzeichen: this.data.kurzbz,
Telefon:
(this.data.standort_telefon ? this.data.standort_telefon : "") +
" " +
this.data.telefonklappe,
Telefon:
(this.data.standort_telefon ? this.data.standort_telefon + " " + this.data.telefonklappe : this.data.telefonklappe),
Büro: this.data.ort_kurzbz,
};
},
@@ -123,10 +123,8 @@ export default {
Geburtsdatum: this.data.gebdatum,
Geburtsort: this.data.gebort,
Kurzzeichen: this.data.kurzbz,
Telefon:
(this.data.standort_telefon ? this.data.standort_telefon : "") +
" " +
this.data.telefonklappe,
Telefon:
(this.data.standort_telefon ? this.data.standort_telefon + " " + this.data.telefonklappe : this.data.telefonklappe),
Büro: this.data.ort_kurzbz,
};
},
@@ -22,7 +22,7 @@ export default {
<div class="card">
<div class="card-header">
{{title}}
{{title}}
</div>
<div class="card-body">
<div class="gy-3 row">
@@ -32,7 +32,7 @@ export default {
<div class="form-underline-titel">{{bez }}</div>
<!-- print Telefon link -->
<a v-if="bez=='Telefon'" :href="data.Telefon?'tel:'+data.Telefon:''" class="form-underline-content">{{wert?wert:'-'}}</a>
<a v-if="bez=='Telefon'" :href="data.Telefon?'tel:'+data.Telefon:null" :class="{'form-underline-content':true,'text-decoration-none':!data.Telefon,'text-body':!data.Telefon}">{{wert?wert:'-'}}</a>
<!-- else print information -->
<span v-else class="form-underline-content">{{wert?wert:'-'}}</span>