diff --git a/CHANGELOG.md b/CHANGELOG.md
index a63f8708f2..5752c7f928 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -8,10 +8,14 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
_**For better traceability add the corresponding GitHub issue number in each changelog entry, please.**_
## [UNRELEASED - DD.MM.YYYY]
+### Added
+- #908 Add owner field to affected parts view in notification details
+
### Changed
- #1252 adapt IRS example response for integration tests to reflect current state
- #1122 Fixed editing notification sendTo attribute
- #1328 Fixed semanticDataModel translation and part name within notification detail / edit view.
+- #908 Renamed header in notification detail for parts from Supplier Parts to Affected parts
## [13.0.1 - 26.07.2024]
diff --git a/frontend/src/app/modules/page/notifications/detail/notification-detail.component.ts b/frontend/src/app/modules/page/notifications/detail/notification-detail.component.ts
index a7f962e0dd..2b1f4ddb70 100644
--- a/frontend/src/app/modules/page/notifications/detail/notification-detail.component.ts
+++ b/frontend/src/app/modules/page/notifications/detail/notification-detail.component.ts
@@ -195,8 +195,8 @@ export class NotificationDetailComponent implements AfterViewInit, OnDestroy {
private setTableConfigs(data: Notification): void {
this.isReceived = !data.isFromSender;
- const displayedColumns = [ 'id', 'semanticDataModel', 'nameAtManufacturer', 'semanticModelId' ];
- const sortableColumns = { id: true, semanticDataModel: true, nameAtManufacturer: true, semanticModelId: true };
+ const displayedColumns = [ 'id', 'owner', 'semanticDataModel', 'nameAtManufacturer', 'semanticModelId' ];
+ const sortableColumns = { id: true, owner: true, semanticDataModel: true, nameAtManufacturer: true, semanticModelId: true };
const tableConfig = {
displayedColumns,
diff --git a/frontend/src/app/modules/shared/components/table/table.component.html b/frontend/src/app/modules/shared/components/table/table.component.html
index f75e98219a..8dc637c776 100644
--- a/frontend/src/app/modules/shared/components/table/table.component.html
+++ b/frontend/src/app/modules/shared/components/table/table.component.html
@@ -421,7 +421,7 @@
{{ 'table.noResultFound' | i18n }}
-
@@ -429,6 +429,9 @@ {{ 'table.noResultFound' | i18n }}
{{ (element[column] | date:'yyyy-MM-dd HH:mm') }}
+
+ {{'table.owner.' + element[column]?.toLowerCase() | i18n}}
+
|
diff --git a/frontend/src/app/modules/shared/components/table/table.component.ts b/frontend/src/app/modules/shared/components/table/table.component.ts
index 96eac6d0ec..2358539c7c 100644
--- a/frontend/src/app/modules/shared/components/table/table.component.ts
+++ b/frontend/src/app/modules/shared/components/table/table.component.ts
@@ -430,6 +430,11 @@ export class TableComponent {
return isDateFilter(key);
}
+ public isOwnerElement(key: string) {
+ const OWNER_KEY = [ 'owner'];
+ return OWNER_KEY.includes(key);
+ }
+
protected readonly MainAspectType = MainAspectType;
protected readonly ContractType = ContractType;
}
diff --git a/frontend/src/assets/locales/de/page.alert.json b/frontend/src/assets/locales/de/page.alert.json
index 7956fece37..43c0bf849b 100644
--- a/frontend/src/assets/locales/de/page.alert.json
+++ b/frontend/src/assets/locales/de/page.alert.json
@@ -8,7 +8,7 @@
"subHeadline": {
"affectedParts": "Betroffene Produkte",
- "supplierParts": "Produkte von Lieferanten"
+ "supplierParts": "Betroffene Produkte"
}
}
}
diff --git a/frontend/src/assets/locales/de/page.investigation.json b/frontend/src/assets/locales/de/page.investigation.json
index 28697e870e..4bfe946466 100644
--- a/frontend/src/assets/locales/de/page.investigation.json
+++ b/frontend/src/assets/locales/de/page.investigation.json
@@ -8,7 +8,7 @@
"subHeadline": {
"affectedParts": "Betroffene Produkte",
- "supplierParts": "Produkte von Lieferanten"
+ "supplierParts": "Betroffene Produkte"
}
}
}
diff --git a/frontend/src/assets/locales/en/page.alert.json b/frontend/src/assets/locales/en/page.alert.json
index d3fd5f0318..116f693453 100644
--- a/frontend/src/assets/locales/en/page.alert.json
+++ b/frontend/src/assets/locales/en/page.alert.json
@@ -8,7 +8,7 @@
"subHeadline": {
"affectedParts": "Affected parts",
- "supplierParts": "Supplier parts"
+ "supplierParts": "Affected parts"
}
}
}
diff --git a/frontend/src/assets/locales/en/page.investigation.json b/frontend/src/assets/locales/en/page.investigation.json
index 82ddd19ba8..c82a2ab064 100644
--- a/frontend/src/assets/locales/en/page.investigation.json
+++ b/frontend/src/assets/locales/en/page.investigation.json
@@ -8,7 +8,7 @@
"subHeadline": {
"affectedParts": "Affected parts",
- "supplierParts": "Supplier parts"
+ "supplierParts": "Affected parts"
}
}
}