diff --git a/src/app/component-library/catalog/asset-detail-dialog/asset-detail-dialog-data.service.ts b/src/app/component-library/catalog/asset-detail-dialog/asset-detail-dialog-data.service.ts
index 2b2d45096..d41b55cf2 100644
--- a/src/app/component-library/catalog/asset-detail-dialog/asset-detail-dialog-data.service.ts
+++ b/src/app/component-library/catalog/asset-detail-dialog/asset-detail-dialog-data.service.ts
@@ -28,20 +28,14 @@ export class AssetDetailDialogDataService {
dataOfferDetails(dataOffer: DataOffer): AssetDetailDialogData {
let asset = dataOffer.asset;
- let contractPolicy = dataOffer.contractOffers[0].policy;
-
const propertyGridGroups = [
this.assetPropertyGridGroupBuilder.buildAssetPropertiesGroup(asset, null),
this.assetPropertyGridGroupBuilder.buildAdditionalPropertiesGroup(asset),
- this.assetPropertyGridGroupBuilder.buildPolicyGroup(
- asset,
- contractPolicy,
- ),
].filter((it) => it.properties.length);
return {
type: 'data-offer',
- asset: dataOffer.asset,
+ asset: asset,
dataOffer,
propertyGridGroups,
};
@@ -56,9 +50,9 @@ export class AssetDetailDialogDataService {
this.assetPropertyGridGroupBuilder.buildContractAgreementGroup(
contractAgreement,
),
- this.assetPropertyGridGroupBuilder.buildPolicyGroup(
- asset,
+ this.assetPropertyGridGroupBuilder.buildContractPolicyGroup(
contractAgreement.contractPolicy,
+ asset.name,
),
this.assetPropertyGridGroupBuilder.buildAssetPropertiesGroup(
asset,
diff --git a/src/app/component-library/catalog/asset-detail-dialog/asset-detail-dialog.component.html b/src/app/component-library/catalog/asset-detail-dialog/asset-detail-dialog.component.html
index 3cacbe1ee..202462b23 100644
--- a/src/app/component-library/catalog/asset-detail-dialog/asset-detail-dialog.component.html
+++ b/src/app/component-library/catalog/asset-detail-dialog/asset-detail-dialog.component.html
@@ -30,12 +30,7 @@
@@ -66,6 +61,13 @@
+
+
+
+
@@ -83,12 +85,23 @@