Skip to content

Commit 0db343f

Browse files
Simone-Ramundiatarix83
authored andcommitted
[GLAM-830] Porting of the following commits '38240c2' & '29a8a81'
1 parent 9f4a319 commit 0db343f

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
@@ -13,12 +13,12 @@
1313
{{'submission.sections.general.no-entity' | translate}}
1414
</button>
1515
</li>
16-
<li *ngFor="let listItem of searchListEntity | dsSort: 'label'" class="entity-item text-primary">
16+
<li *ngFor="let listItem of searchListEntity | dsSort: 'translatedLabel'" class="entity-item text-primary">
1717
<button class="dropdown-item"
1818
role="menuitem"
19-
title="{{ listItem.label }}"
19+
title="{{ listItem.translatedLabel }}"
2020
(click)="onSelect(listItem)">
21-
<span class="text-truncate font-weight-bold">{{ listItem.label }}</span>
21+
<span class="text-truncate font-weight-bold">{{ listItem.translatedLabel }}</span>
2222
</button>
2323
</li>
2424
<li *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)