display txt, if no phone number available

This commit is contained in:
Chneemann 2024-04-27 14:57:02 +02:00
parent 19f27f6c43
commit 2a9b0f248d
2 changed files with 10 additions and 1 deletions

View file

@ -64,13 +64,18 @@
{{ firebaseService.getUserDetails(currentUserId, "email") }}
</a>
<p>Phone:</p>
@if(firebaseService.getUserDetails(currentUserId, 'phone')[0] === '') {
<span>no phone</span> } @else {
<a
[href]="
'tel:' + firebaseService.getUserDetails(currentUserId, 'phone')
"
>
{{ firebaseService.getUserDetails(currentUserId, "phone") }}
<span>{{
firebaseService.getUserDetails(currentUserId, "phone")
}}</span>
</a>
}
</div>
</div>
</div>

View file

@ -113,6 +113,10 @@
font-weight: 700;
padding: 24px 0 12px 0;
}
span {
font-size: 16px;
font-weight: 400;
}
a {
font-size: 16px;
font-weight: 400;