fix(deltagare): Changed the way addresses are handled. Now we show address-type even if no address is available. (TV-712)

Squashed commit of the following:

commit f49d49910dc335693f9c7825abbee59459f5d88b
Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se>
Date:   Thu Sep 30 08:43:15 2021 +0200

    Changed address handling inside contactinformation for deltagare
This commit is contained in:
Erik Tiekstra
2021-09-30 15:20:51 +02:00
parent dadc5b9bb6
commit 96a50a0b8e
3 changed files with 28 additions and 5 deletions

View File

@@ -12,7 +12,21 @@
ariaLabelType="personnummer"
></msfa-hide-text>
</dd>
<ng-container *ngFor="let address of contactInformation.addresses">
<dt>Folkbokföringsadress</dt>
<dd *ngIf="contactInformation.officialAddress as address; else emptyDD">
<address>
{{ address.street }}<br />
{{ address.postalCode }} {{ address.city }}
</address>
</dd>
<dt>Postadress</dt>
<dd *ngIf="contactInformation.postalAddress as address; else emptyDD">
<address>
{{ address.street }}<br />
{{ address.postalCode }} {{ address.city }}
</address>
</dd>
<!-- <ng-container *ngFor="let address of contactInformation.addresses">
<dt>{{address.type}}:</dt>
<dd>
<address>
@@ -20,7 +34,7 @@
{{ address.postalCode }} {{ address.city }}
</address>
</dd>
</ng-container>
</ng-container> -->
<dt>Telefon:</dt>
<ng-container *ngIf="contactInformation.phoneNumbers?.length; else emptyDD">
<ng-container *ngFor="let phoneNumber of contactInformation.phoneNumbers">