Loading style changed according to other techniques, link in description now opens on a new tab

This commit is contained in:
VakarisZ 2019-12-04 16:01:15 +02:00
parent adba6f5258
commit 1fd5ff8773
1 changed files with 17 additions and 6 deletions

View File

@ -95,12 +95,16 @@ class AttackReport extends React.Component {
generateReportContent() {
return (
<div id='attack' className='attack-report report-page'>
<ReportHeader report_type={ReportTypes.attack}/>
<hr/>
<div>
<p>
This report shows information about
<Button bsStyle={'link'} href={'https://attack.mitre.org/'} bsSize={'lg'} className={'attack-link'}>Mitre ATT&CK</Button>
<Button bsStyle={'link'}
href={'https://attack.mitre.org/'}
bsSize={'lg'}
className={'attack-link'}
target={"_blank"}>
Mitre ATT&CK
</Button>
techniques used by Infection Monkey.
</p>
{this.renderLegend()}
@ -144,11 +148,18 @@ class AttackReport extends React.Component {
}
render() {
let content = {};
if (typeof this.state.schema === 'undefined' || typeof this.state.techniques === 'undefined') {
return (<ReportLoader/>);
content = <ReportLoader/>;
} else {
return (<div> {this.generateReportContent()}</div>);
content = <div> {this.generateReportContent()}</div>;
}
return (
<div id='attack' className='attack-report report-page'>
<ReportHeader report_type={ReportTypes.attack}/>
<hr/>
{content}
</div>)
}
}