Skip to content

Commit

Permalink
Added condition to display view-all button if href input is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathew1011 committed Sep 1, 2020
1 parent 1a5d099 commit 1bf8e85
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/tl-mega-menu/tl-mega-menu.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
ngbDropdownAnchor
>
<wvr-dropdown-btn>
{{menuTitle}}
<tl-icon-element
set="bootstrap"
name="caret-right-fill"
{{menuTitle}}
<tl-icon-element
set="bootstrap"
name="caret-right-fill"
size="11px">
</tl-icon-element>
</wvr-dropdown-btn>
Expand All @@ -23,9 +23,9 @@
<ng-content select="tl-mega-menu-section"></ng-content>
</div>
<div class="mega-menu-view-all">
<tl-button-element [href]="viewAllHref" [btnClass]="'primary'">
<tl-button-element *ngIf="viewAllHref" [href]="viewAllHref" [btnClass]="'primary'">
<wvr-text-element value="View All {{menuTitle}}"></wvr-text-element>
</tl-button-element>
</div>
</wvr-dropdown-menu>
</wvr-dropdown-element>
</wvr-dropdown-element>

0 comments on commit 1bf8e85

Please sign in to comment.