Skip to content

Commit e3b7814

Browse files
authored
Merge pull request #1328 from eclipse-tractusx/chore/1308-fix-partname
chore(release): 1308 - Fix language mapping for semanticDataModel in …
2 parents 0365bfd + adabcff commit e3b7814

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ _**For better traceability add the corresponding GitHub issue number in each cha
99
## [UNRELEASED - DD.MM.YYYY]
1010

1111
### Changed
12-
- #1122 fix editing notification sendTo attribute
12+
- #1122 Fixed editing notification sendTo attribute
13+
- #1328 Fixed semanticDataModel translation and part name within notification detail / edit view.
1314

1415
## [13.0.1 - 26.07.2024]
1516

frontend/src/app/modules/page/notifications/detail/notification-detail.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ export class NotificationDetailComponent implements AfterViewInit, OnDestroy {
195195
private setTableConfigs(data: Notification): void {
196196
this.isReceived = !data.isFromSender;
197197

198-
const displayedColumns = [ 'id', 'semanticDataModel', 'name', 'semanticModelId' ];
199-
const sortableColumns = { id: true, semanticDataModel: true, name: true, semanticModelId: true };
198+
const displayedColumns = [ 'id', 'semanticDataModel', 'nameAtManufacturer', 'semanticModelId' ];
199+
const sortableColumns = { id: true, semanticDataModel: true, nameAtManufacturer: true, semanticModelId: true };
200200

201201
const tableConfig = {
202202
displayedColumns,

frontend/src/app/modules/shared/components/parts-table/parts-table.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ <h3>{{ 'table.noResultFound' | i18n }}</h3>
325325

326326
<ng-template #semanticDataModelElement>
327327
<ng-container *ngIf="isSemanticDataModel(column); else autoFormatRef">
328-
{{'table.semanticDataModel.' + element[column] | i18n}}
328+
{{'table.semanticDataModel.' + element[column]?.toUpperCase() | i18n}}
329329
</ng-container>
330330
</ng-template>
331331

0 commit comments

Comments
 (0)