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