Using regular print. Doesn't look great, but better than nothing.

This commit is contained in:
Shay Nehmad 2019-08-19 18:13:30 +03:00
parent d52a6eab57
commit f26ab7f62d
1 changed files with 2 additions and 6 deletions

View File

@ -71,7 +71,7 @@ class ZeroTrustReportPageComponent extends AuthComponent {
return ( return (
<Fragment> <Fragment>
<div style={{marginBottom: '20px'}}> <div style={{marginBottom: '20px'}}>
<PrintReportButton onClick={() => {this.print();}} /> <PrintReportButton onClick={() => {print();}} />
</div> </div>
<div className="report-page"> <div className="report-page">
<ReportHeader report_type={ReportTypes.zeroTrust}/> <ReportHeader report_type={ReportTypes.zeroTrust}/>
@ -79,7 +79,7 @@ class ZeroTrustReportPageComponent extends AuthComponent {
{content} {content}
</div> </div>
<div style={{marginTop: '20px'}}> <div style={{marginTop: '20px'}}>
<PrintReportButton onClick={() => {this.print();}} /> <PrintReportButton onClick={() => {print();}} />
</div> </div>
</Fragment> </Fragment>
) )
@ -130,10 +130,6 @@ class ZeroTrustReportPageComponent extends AuthComponent {
return typeof this.state.findings === "undefined" || typeof this.state.pillars === "undefined" || typeof this.state.directives === "undefined"; return typeof this.state.findings === "undefined" || typeof this.state.pillars === "undefined" || typeof this.state.directives === "undefined";
} }
print() {
alert("unimplemented");
}
getZeroTrustReportFromServer() { getZeroTrustReportFromServer() {
let res; let res;
this.authFetch('/api/report/zero_trust/findings') this.authFetch('/api/report/zero_trust/findings')