Hiding titles of filter categories when no filter exists

This commit is contained in:
Zoe Roux 2020-09-21 00:50:26 +02:00
parent 64c9921dca
commit c83d80ab51

View File

@ -13,6 +13,7 @@
</div>
<mat-menu #filterMenu="matMenu" class="big-panel">
<ng-container *ngIf="this.genres.length > 0">
<h4><b>Genres</b></h4>
<mat-chip-list>
<!--suppress AngularInvalidExpressionResultType ('default' color is valid for mat-chip)-->
@ -22,7 +23,9 @@
{{genre.name}}
</mat-chip>
</mat-chip-list>
</ng-container>
<ng-container *ngIf="this.studios.length > 0">
<br/>
<h4><b>Studios</b></h4>
<mat-chip-list>
@ -33,6 +36,7 @@
{{studio.name}}
</mat-chip>
</mat-chip-list>
</ng-container>
</mat-menu>
<mat-menu #sortMenu="matMenu">