Skip to content

Commit

Permalink
fix: render content of product detail description tab as html (#1037)
Browse files Browse the repository at this point in the history
  • Loading branch information
suschneider authored Mar 4, 2022
1 parent 0d11adb commit 147b07c
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,23 @@
<ul ngbNav #nav="ngbNav" class="nav-tabs w-100" [(activeId)]="active">
<li [ngbNavItem]="'DESCRIPTION'">
<a ngbNavLink>{{ 'product.description.heading' | translate }}</a>
<ng-template ngbNavContent>{{ product.longDescription }}</ng-template>
<ng-template ngbNavContent>
<div [innerHTML]="product.longDescription"></div>
</ng-template>
</li>

<li *ngIf="product.attributes?.length" [ngbNavItem]="'DETAILS'">
<a ngbNavLink>{{ 'product.details.heading' | translate }}</a>
<ng-template ngbNavContent><ish-product-attributes [product]="product"></ish-product-attributes></ng-template>
<ng-template ngbNavContent>
<ish-product-attributes [product]="product"></ish-product-attributes>
</ng-template>
</li>

<li *ngIf="product.attachments?.length" [ngbNavItem]="'ATTACHMENTS'">
<a ngbNavLink>{{ 'product.attachments.heading' | translate }}</a>
<ng-template ngbNavContent><ish-product-attachments></ish-product-attachments></ng-template>
<ng-template ngbNavContent>
<ish-product-attachments></ish-product-attachments>
</ng-template>
</li>
</ul>

Expand Down

0 comments on commit 147b07c

Please sign in to comment.