adding version to analytics report (#2527)

* adding version to analytics report

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* npm run format

Signed-off-by: Raj Das <mail.rajdas@gmail.com>

* npm run format

Signed-off-by: Raj Das <mail.rajdas@gmail.com>
This commit is contained in:
Raj Babu Das 2021-03-11 17:17:39 +05:30 committed by GitHub
parent cc83cd0f1a
commit 4172dfb51a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -462,11 +462,12 @@ const WorkflowComparisonTable = () => {
const contentDataURL = canvas.toDataURL('image/png');
const doc = new jsPDF('p', 'mm', 'a4'); // A4 size page of PDF
const position = -54;
const version = process.env.REACT_APP_KB_CHAOS_VERSION;
doc.setFillColor(255, 255, 255);
doc.setFontSize(10);
doc.setTextColor(0, 0, 0);
doc.setDrawColor(0, 0, 0);
doc.text('Litmus Portal Report Version: 1.3.x', 10, 10);
doc.text(`Litmus Portal Report Version: ${version}`, 10, 10);
doc.text('Time of Generation:', 10, 15);
doc.text(new Date().toString(), 42, 15);
doc.text(