Skip to content

Commit

Permalink
fix(customer-detail): show guardian details when linked to profile
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianAndersen committed Oct 9, 2024
1 parent 097012a commit feef2b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ <h4>{{ customerDetail.name }}</h4>
</small>
</li>

<li class="list-group-item list-group-item-dark" *ngIf="showGuardian">
<li class="list-group-item list-group-item-dark" *ngIf="customerDetail.guardian.name">
<small>
<div class="text-center">
<h5 i18n="@@customerDetailCardGuardian">Guardian</h5>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,12 @@ export class CustomerDetailCardComponent implements OnInit {
@Input() customerDetail: UserDetail;
@Input() wait: boolean;
public customerDetailUpdated: boolean;
public showGuardian: boolean;

constructor() {
this.customerDetailUpdated = false;
}

ngOnInit() {
this.showGuardian =
this.customerDetail.guardian &&
this.customerDetail.guardian.name &&
this.customerDetail.guardian.name.length > 0;
}
ngOnInit() {}

onCustomerDetailUpdated() {
this.customerDetailUpdated = true;
Expand Down

0 comments on commit feef2b2

Please sign in to comment.