Fixed missing pillar status (for label color)

This commit is contained in:
Shay Nehmad 2019-08-18 09:41:57 +03:00
parent 21c3c9bf4d
commit 32a346fdcf
2 changed files with 3 additions and 2 deletions

View File

@ -85,7 +85,8 @@ class ZeroTrustReportPageComponent extends AuthComponent {
<SinglePillarDirectivesStatus
key={pillar}
pillar={pillar}
directivesStatus={this.state.directives[pillar]}/>
directivesStatus={this.state.directives[pillar]}
pillarsToStatuses={this.state.pillars.pillarsToStatuses}/>
)
}
</div>;

View File

@ -13,7 +13,7 @@ export class SinglePillarDirectivesStatus extends AuthComponent {
else {
return (
<Fragment>
<h3><PillarLabel pillar={this.props.pillar}/></h3>
<h3><PillarLabel pillar={this.props.pillar} status={this.props.pillarsToStatuses[this.props.pillar]} /></h3>
<DirectivesStatusTable directivesStatus={this.props.directivesStatus}/>
</Fragment>
);