Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show Service plan cost when selecting a service plan (if not free) #2959

Merged
merged 9 commits into from
Nov 9, 2018
Prev Previous commit
Next Next commit
Hide if plan is free
  • Loading branch information
Irfan Habib committed Sep 6, 2018
commit c2749f80f38216b301b441475befeb8996a5ac37
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@
<span *ngIf="(getPlanAccessibility(selPlan.entity) | async) !== 'ok'"> ({{ getAccessibilityMessage(selPlan.entity) | async }})</span>
</app-metadata-item>
<app-metadata-item label="Free"> {{ isFree(selPlan) | titlecase}} </app-metadata-item>
<div *ngFor="let cost of selPlan.extra.costs">
<app-metadata-item label="Cost per {{ cost.unit | titlecase }}"> {{ getCostCurrency(cost, true) }}{{ getCostValue(cost) }} </app-metadata-item>
</div>
<ng-container *ngIf="!isFree(selPlan)">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will always be false as isFree is a string - need to use *ngIf="!selPlan.entity.entity.free">

<div *ngFor="let cost of selPlan.extra.costs">
<app-metadata-item label="Cost per {{ cost.unit | titlecase }}"> {{ getCostCurrency(cost, true) }}{{ getCostValue(cost) }} </app-metadata-item>
</div>
</ng-container>
<app-metadata-item label="Additional Information" *ngIf="hasAdditionalInfo(selPlan)">
<ul>
<li *ngFor="let bulletPoint of selPlan.extra.bullets">{{bulletPoint}}</li>
Expand Down