diff --git a/packages/angular-sdk-components/src/lib/_components/infra/view/view.component.ts b/packages/angular-sdk-components/src/lib/_components/infra/view/view.component.ts index b0ed060d..c43848a0 100644 --- a/packages/angular-sdk-components/src/lib/_components/infra/view/view.component.ts +++ b/packages/angular-sdk-components/src/lib/_components/infra/view/view.component.ts @@ -7,7 +7,7 @@ import { getAllFields } from '../../template/utils'; import { ReferenceComponent } from '../reference/reference.component'; import { ComponentMapperComponent } from '../../../_bridge/component-mapper/component-mapper.component'; -const NO_HEADER_TEMPLATES = ['SubTabs', 'SimpleTable', 'Confirmation', 'DynamicTabs', 'DetailsSubTabs']; +const NO_HEADER_TEMPLATES = ['SubTabs', 'SimpleTable', 'Confirmation', 'DynamicTabs', 'DetailsSubTabs', 'ListView']; const DETAILS_TEMPLATES = [ 'Details', 'DetailsFields', @@ -158,10 +158,9 @@ export class ViewComponent implements OnInit, OnDestroy, OnChanges { this.templateName$ = this.configProps$.template || ''; this.title$ = this.configProps$.title || ''; - this.label$ = this.configProps$.label || ''; - this.showLabel$ = this.configProps$.showLabel || isDetailsTemplate(this.templateName$) || this.showLabel$; // label & showLabel within inheritedProps takes precedence over configProps - this.label$ = this.inheritedProps$.label || this.label$; + this.label$ = this.inheritedProps$.label || this.configProps$.label || ''; + this.showLabel$ = this.inheritedProps$.showLabel || this.configProps$.showLabel || isDetailsTemplate(this.templateName$); // children may have a 'reference' so normalize the children array this.arChildren$ = ReferenceComponent.normalizePConnArray(this.pConn$.getChildren()); this.visibility$ = this.configProps$.visibility ?? this.visibility$;