Skip to content

Commit

Permalink
Rename references from name to formattedName
Browse files Browse the repository at this point in the history
  • Loading branch information
chia-yh committed Jul 24, 2023
1 parent e4a22a2 commit 3c73261
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/core/models/label.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ export class Label implements SimpleLabel {
* Represents a simplified label with name and color
*/
export type SimpleLabel = {
name: string;
formattedName: string;
color: string;
};
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
[disabled]="hiddenLabelNames.has(label.name)"
(click)="simulateClick(option); $event.stopPropagation()"
>
{{ label.name }}
{{ label.formattedName }}
</mat-chip>
</div>
</mat-list-option>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export class LabelFilterBarComponent implements OnInit, AfterViewInit, OnDestroy
if (this.allLabels === undefined || this.allLabels.length === 0) {
return false;
}
return this.allLabels.some((label) => !this.filter(filter, label.name));
return this.allLabels.some((label) => !this.filter(filter, label.formattedName));
}

updateSelection(): void {
Expand Down

0 comments on commit 3c73261

Please sign in to comment.