Skip to content

Commit

Permalink
fix: Don't show Zone Details progress bar if Building Total Area
Browse files Browse the repository at this point in the history
  • Loading branch information
Clashsoft committed Sep 4, 2024
1 parent 0ddaea5 commit 6eb0062
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/zone/zone/zone-detail.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ <h1>
</div>
</div>
<div class="container">
@let buildingTotalArea = audit?.pre_audit_form?.data?.['area_building_total_area'] === 'Yes';
<app-feature-card
title="Zone Details"
[subtitle]="audit?.pre_audit_form?.data?.['area_building_total_area'] === 'Yes' ? 'Not Required (Building Total Area in Pre Audit is enabled)' : undefined"
[subtitle]="buildingTotalArea ? 'Not Required (Building Total Area in Pre Audit is enabled)' : undefined"
routerLink="details"
[percentageQuery]="{percentageType: 'zoneDetails', auditId: route.snapshot.params.aid, zoneId: route.snapshot.params.zid}"
[percentageQuery]="buildingTotalArea ? undefined : {percentageType: 'zoneDetails', auditId: route.snapshot.params.aid, zoneId: route.snapshot.params.zid}"
></app-feature-card>
<hr/>
@for (equipment of equipments; track equipment) {
Expand Down

0 comments on commit 6eb0062

Please sign in to comment.