mbachtell-nais / crossfeed

External monitoring for organization assets
https://docs.crossfeed.cyber.dhs.gov
Creative Commons Zero v1.0 Universal
1 stars 0 forks source link

Include Date/Time and Name of Person Printing on PDF Reports, Change Filename #1

Closed mbachtell-nais closed 1 year ago

mbachtell-nais commented 1 year ago

Include Date/Time and Name of Person Printing on PDF Reports

crossfeed_pdf_improvements

mbachtell-nais commented 1 year ago

Date and Time Solution

File To Update

frontend > src > pages > Risk > Risk.tsx

Variable to Add to the Function generatePDF

const dateTimeNow = new Date(); line 553

Add to Filename

pdf.save('CrossfeedReport'+dateTimeNow.toISOString()+'.pdf'); line 573

mbachtell-nais commented 1 year ago

Crossfeed uses jsPDF to generate PDFs. Check the documentation for help

mbachtell-nais commented 1 year ago

Updated Risk.tsx file to include requested changes.

Crossfeed_Report_2023-03-17T10_43_07.653Z.pdf