Skip to content

Commit 7c6ebdb

Browse files
BrunoZirnsteinmarcuskrahl
authored andcommitted
feat(user-details): added postal code at User-Detail-Page (#378)
* feat: added Postal Code at User Detail Page * fix: added zip code in mock data
1 parent f615905 commit 7c6ebdb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Phonebook.Frontend/src/app/shared/components/address/address.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"
88
>
99
<ng-container *ngIf="this.location.RoomCollection.length == 1">
10-
<span>{{ address[0] }}</span>
10+
<span>{{ address[0] }}<ng-container *ngIf="location.City.ZipCode != null">, {{ location.City.ZipCode }}</ng-container></span>
1111
<span>{{ address[1] }}</span>
1212
<ng-container *ngIf="location.RoomCollection">
1313
<span

Phonebook.Source.MockPeopleBackend/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function generatePerson() {
8686
ReceptionPhone: null,
8787
LinkPicture: null,
8888
LinkRoutingInfo: null,
89-
City: { Name: room.Place, Building: room.Building },
89+
City: { Name: room.Place, Building: room.Building, zipCode: faker.address.zipCode() },
9090
RoomCollection: [
9191
{
9292
Building: room.Building,

0 commit comments

Comments
 (0)