Skip to content

Commit acca16d

Browse files
[GLAM-830] Porting of the following commits '38240c2' & '29a8a81'
1 parent 3d9a7c9 commit acca16d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/app/shared/entity-dropdown/entity-dropdown.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
<button class="dropdown-item disabled" *ngIf="searchListEntity?.length == 0 && !(isLoadingList | async)">
1313
{{'submission.sections.general.no-entity' | translate}}
1414
</button>
15-
<button *ngFor="let listItem of searchListEntity | dsSort: 'label'"
15+
<button *ngFor="let listItem of searchListEntity | dsSort: 'translatedLabel'"
1616
class="dropdown-item entity-item"
17-
title="{{ listItem.label }}"
17+
title="{{ listItem.translatedLabel }}"
1818
(click)="onSelect(listItem)">
1919
<ul class="list-unstyled mb-0">
20-
<li class="list-item text-truncate text-primary font-weight-bold">{{ listItem.label }}</li>
20+
<li class="list-item text-truncate text-primary font-weight-bold">{{ listItem.translatedLabel }}</li>
2121
</ul>
2222
</button>
2323
<button class="dropdown-item disabled" *ngIf="(isLoadingList | async)" >

src/app/shared/entity-dropdown/entity-dropdown.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ export class EntityDropdownComponent implements OnInit, OnDestroy {
200200
map((item: ItemType) => {
201201
return {
202202
...item,
203-
label: this.translate.instant(`${item.label?.toLowerCase()}.listelement.badge`)
203+
translatedLabel: this.translate.instant(`${item.label?.toLowerCase()}.listelement.badge`)
204204
};
205205
}
206206
),

0 commit comments

Comments
 (0)