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 <SinglePillarDirectivesStatus
key={pillar} key={pillar}
pillar={pillar} pillar={pillar}
directivesStatus={this.state.directives[pillar]}/> directivesStatus={this.state.directives[pillar]}
pillarsToStatuses={this.state.pillars.pillarsToStatuses}/>
) )
} }
</div>; </div>;

View File

@ -13,7 +13,7 @@ export class SinglePillarDirectivesStatus extends AuthComponent {
else { else {
return ( return (
<Fragment> <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}/> <DirectivesStatusTable directivesStatus={this.props.directivesStatus}/>
</Fragment> </Fragment>
); );