From 4172dfb51ad7d63615dd3cfb0abff2384fb70a65 Mon Sep 17 00:00:00 2001 From: Raj Babu Das Date: Thu, 11 Mar 2021 17:17:39 +0530 Subject: [PATCH] adding version to analytics report (#2527) * adding version to analytics report Signed-off-by: Raj Das * npm run format Signed-off-by: Raj Das * npm run format Signed-off-by: Raj Das --- .../LitmusDashboard/WorkflowComparisonTable/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litmus-portal/frontend/src/views/AnalyticsDashboard/LitmusDashboard/WorkflowComparisonTable/index.tsx b/litmus-portal/frontend/src/views/AnalyticsDashboard/LitmusDashboard/WorkflowComparisonTable/index.tsx index 546e90006..7713a717a 100644 --- a/litmus-portal/frontend/src/views/AnalyticsDashboard/LitmusDashboard/WorkflowComparisonTable/index.tsx +++ b/litmus-portal/frontend/src/views/AnalyticsDashboard/LitmusDashboard/WorkflowComparisonTable/index.tsx @@ -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(