forked from p15670423/monkey
Improved unsecure resource display: removed a separate line for unsecure resource count and instead added the count to the annotation of unsecure resource list. E.g: "Flagged resources (3)"
This commit is contained in:
parent
1472382387
commit
5027dd4d2c
|
@ -17,10 +17,6 @@ export default function RuleDisplay(props) {
|
||||||
<p className={'checked-resources-title'}>Resources checked: </p>
|
<p className={'checked-resources-title'}>Resources checked: </p>
|
||||||
<p>{props.rule.checked_items}</p>
|
<p>{props.rule.checked_items}</p>
|
||||||
</div>
|
</div>
|
||||||
<div className={'flagged-resources'}>
|
|
||||||
<p className={'checked-resources-title'}>Resources flagged: </p>
|
|
||||||
<p>{props.rule.flagged_items}</p>
|
|
||||||
</div>
|
|
||||||
{props.rule.references.length !== 0 ? getReferences() : ''}
|
{props.rule.references.length !== 0 ? getReferences() : ''}
|
||||||
{props.rule.items.length !== 0 ? getResources() : ''}
|
{props.rule.items.length !== 0 ? getResources() : ''}
|
||||||
</div>);
|
</div>);
|
||||||
|
@ -54,7 +50,7 @@ export default function RuleDisplay(props) {
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div className={'reference-list'}>
|
<div className={'reference-list'}>
|
||||||
<p className={'reference-list-title'}>Resources:</p>
|
<p className={'reference-list-title'}>Flagged resources (<b>{props.rule.flagged_items}</b>):</p>
|
||||||
{resources}
|
{resources}
|
||||||
</div>)
|
</div>)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue