diff --git a/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.html b/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.html index 783c3c60574..d5d41f07c36 100644 --- a/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.html +++ b/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.html @@ -78,7 +78,7 @@ - + {{ customPanel.panelTitle | translate }} @@ -90,7 +90,7 @@ class="adf-metadata-grouped-properties-container"> + [expanded]="canExpandTheCard(group.title) || !displayDefaultProperties && first"> {{ group.title | translate }} diff --git a/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.ts b/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.ts index 60680dacd8f..1a293ec23b7 100644 --- a/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.ts +++ b/lib/content-services/src/lib/content-metadata/components/content-metadata/content-metadata.component.ts @@ -296,8 +296,8 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy { return properties.length > 0; } - canExpandTheCard(group: CardViewGroup): boolean { - return group.title === this.displayAspect; + canExpandTheCard(groupTitle: string): boolean { + return groupTitle === this.displayAspect; } canExpandProperties(): boolean {