Skip to content
Snippets Groups Projects
Commit 725a048a authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #13271 TIME 0:10 hide no res filter

parent c545d6f0
No related branches found
No related tags found
No related merge requests found
...@@ -8,9 +8,11 @@ ...@@ -8,9 +8,11 @@
<div class="catGroupTitle">{{'lang.'+filterKey.key | translate}} ({{filters[filterKey.key]['values'].length}})</div> <div class="catGroupTitle">{{'lang.'+filterKey.key | translate}} ({{filters[filterKey.key]['values'].length}})</div>
<mat-divider style="width: 80%;"></mat-divider> <mat-divider style="width: 80%;"></mat-divider>
<ng-container *ngFor="let cat of filters[filterKey.key]['values'];let i=index"> <ng-container *ngFor="let cat of filters[filterKey.key]['values'];let i=index">
<mat-list-option color="primary" class="catContent" *ngIf="i < 5 || filters[filterKey.key]['expand']" (click)="toggleFilter(filterKey.key,i)" [selected]="cat.selected" checkboxPosition="before" [disabled]="isLoadingResults"> <ng-container *ngIf="cat.count > 0 || (cat.count === 0 && cat.selected)">
<span class="catLabel" [title]="cat.label">{{cat.id !== null ? cat.label : 'lang.undefined' | translate}}</span><span class="catBadge">{{cat.count}}</span> <mat-list-option color="primary" class="catContent" *ngIf="i < 5 || filters[filterKey.key]['expand']" (click)="toggleFilter(filterKey.key,i)" [selected]="cat.selected" checkboxPosition="before" [disabled]="isLoadingResults">
</mat-list-option> <span class="catLabel" [title]="cat.label">{{cat.id !== null ? cat.label : 'lang.undefined' | translate}}</span><span class="catBadge" [class.noRes]="cat.count === 0">{{cat.count}}</span>
</mat-list-option>
</ng-container>
</ng-container> </ng-container>
<button mat-button *ngIf="filters[filterKey.key]['values'].length > 5" style="width:100%;" color="primary" (click)="toggleDisplay(filterKey.key)">{{filters[filterKey.key]['expand'] ? ('lang.less' | translate) : ('lang.more' | translate) }}<mat-icon style="height:auto;" class="fas" [class.fa-chevron-down]="!filters[filterKey.key]['expand']" [class.fa-chevron-up]="filters[filterKey.key]['expand']"></mat-icon></button> <button mat-button *ngIf="filters[filterKey.key]['values'].length > 5" style="width:100%;" color="primary" (click)="toggleDisplay(filterKey.key)">{{filters[filterKey.key]['expand'] ? ('lang.less' | translate) : ('lang.more' | translate) }}<mat-icon style="height:auto;" class="fas" [class.fa-chevron-down]="!filters[filterKey.key]['expand']" [class.fa-chevron-up]="filters[filterKey.key]['expand']"></mat-icon></button>
</mat-selection-list> </mat-selection-list>
......
...@@ -63,3 +63,7 @@ ...@@ -63,3 +63,7 @@
background: initial; background: initial;
} }
.noRes {
color: #666 !important;
opacity: 0.5;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment