Skip to content
This repository has been archived by the owner on Dec 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #31 from petridishdev/main
Browse files Browse the repository at this point in the history
Fixes translation artifact with 'Show Archived' filter from previous fix
  • Loading branch information
swcurran authored Sep 13, 2021
2 parents 3e1668a + 3968a7b commit 03a2d60
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/app/search/filters.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@
<div class="facet mb-3" *ngIf="filter.options?.length">
<h3 class="control-label filter-group-label mb-1">{{filter.label | translate}}</h3>
<div class="list-group filter-group">
<label *ngFor="let opt of filter.options" class="list-group-item filter-item" [ngClass]="{'list-group-item-primary': opt.active, 'active': opt.focused}">
<label *ngFor="let opt of filter.options" class="list-group-item filter-item"
[ngClass]="{'list-group-item-primary': opt.active, 'active': opt.focused}">
<div class="form-check">
<input type="checkbox" tabindex="0" [id]="opt.id" class="form-check-input" [value]="opt.value" [checked]="opt.active" (change)="setFilter($event, filter.name, opt.value)" (focus)="opt.focused=true" (blur)="opt.focused=false">
<input type="checkbox" tabindex="0" [id]="opt.id" class="form-check-input" [value]="opt.value"
[checked]="opt.active" (change)="setFilter($event, filter.name, opt.value)" (focus)="opt.focused=true"
(blur)="opt.focused=false">
<span class="filter-label">
{{ translateEntry(opt.tlabel || opt.label, "name") }}
{{ translateEntry(opt.tlabel || opt.label, (opt.tlabel !== 'general.show-inactive' ? 'name' : null)) }}
<span class="badge badge-primary badge-pill ml-1" *ngIf="opt.count">{{opt.count | shortNumber}}</span>
</span>
</div>
</label>
</div>
</div>
</ng-container>
</ng-container>
</ng-container>

0 comments on commit 03a2d60

Please sign in to comment.