File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11<script >
22import common from " ../../shared/common"
3+ import i18n from ' ../../i18n'
34import { Scatter } from ' vue-chartjs'
45import { CustomTooltips } from ' @coreui/coreui-plugin-chartjs-custom-tooltips'
56
@@ -89,7 +90,14 @@ export default {
8990 let label = data .labels [tooltipItem .index ];
9091 let vulnId = label .vulnId ;
9192 let componentLabel = label .componentLabel ;
92- return ' Component<br/>Vulnerability<br/>CVSS<br/>EPSS: ' + componentLabel .replace (" :" , " :" ) + ' <br/>' + vulnId + ' <br/>' + tooltipItem .xLabel + ' <br/>' + tooltipItem .yLabel ;
93+ return ` ${ i18n .t (' message.component' )} <br>`
94+ + ` ${ i18n .t (' message.vulnerability' )} <br/>`
95+ + ` ${ i18n .t (' message.cvss' )} <br/>`
96+ + ` ${ i18n .t (' message.epss' )} : `
97+ + ` ${ componentLabel .replace (" :" , " :" )} <br/>`
98+ + ` ${ vulnId} <br/>`
99+ + ` ${ tooltipItem .xLabel } <br/>`
100+ + tooltipItem .yLabel ;
93101 }
94102 }
95103 },
You can’t perform that action at this time.
0 commit comments