Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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$;
Expand Down