Skip to content

Commit

Permalink
Fix label filter not working (#230)
Browse files Browse the repository at this point in the history
Fix label filter not working

Filters takes the value of `label.formattedName` instead of `label.name`.
  • Loading branch information
nknguyenhc authored Feb 6, 2024
1 parent cd0d7e9 commit 043311b
Showing 1 changed file with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,29 @@
<mat-list-option
#option
*ngFor="let label of this.labels$ | async"
[value]="label.name"
[selected]="selectedLabelNames.includes(label.name)"
[value]="label.formattedName"
[selected]="selectedLabelNames.includes(label.formattedName)"
class="list-option"
[class.hidden]="filter(input.value, label.name)"
>
<div class="flexbox-container">
<button mat-icon-button *ngIf="!hiddenLabelNames.has(label.name)" (click)="hide(label.name); $event.stopPropagation()">
<button
mat-icon-button
*ngIf="!hiddenLabelNames.has(label.formattedName)"
(click)="hide(label.formattedName); $event.stopPropagation()"
>
<mat-icon>visibility</mat-icon>
</button>
<button mat-icon-button *ngIf="hiddenLabelNames.has(label.name)" (click)="show(label.name); $event.stopPropagation()">
<button
mat-icon-button
*ngIf="hiddenLabelNames.has(label.formattedName)"
(click)="show(label.formattedName); $event.stopPropagation()"
>
<mat-icon>visibility_off</mat-icon>
</button>
<mat-chip
[ngStyle]="labelService.setLabelStyle(label.color)"
[disabled]="hiddenLabelNames.has(label.name)"
[disabled]="hiddenLabelNames.has(label.formattedName)"
(click)="simulateClick(option); $event.stopPropagation()"
>
{{ label.formattedName }}
Expand Down

0 comments on commit 043311b

Please sign in to comment.