Skip to content

Commit

Permalink
feat: improve tooltip clarity for project vulnerabilities
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <adam.setch@outlook.com>
  • Loading branch information
setchy committed Feb 21, 2024
1 parent b8dc00d commit a18631c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,13 @@
"cvss_severity": "CVSS Severity",
"owasp_rr_severity": "OWASP Risk Rating Severity"
},
"vulnerability": {
"critical": "Critical Severity Vulnerabilities",
"high": "High Severity Vulnerabilities",
"medium": "Medium Severity Vulnerabilities",
"low": "Low Severity Vulnerabilities",
"unassigned": "Unassigned Vulnerabilities"
},
"validation": {
"required": "{_field_} is required",
"confirmed": "{_field_} doesn't match",
Expand Down
10 changes: 5 additions & 5 deletions src/views/portfolio/projects/Project.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
:percent="100"
:size="50"
:animate="true"
v-b-tooltip.hover :title="$t('severity.critical')"
v-b-tooltip.hover :title="$t('vulnerability.critical')"
>{{ currentCritical }}</vue-easy-pie-chart>
<vue-easy-pie-chart style="margin-right: 1rem"
:bar-color="severityHigh"
Expand All @@ -58,7 +58,7 @@
:percent="100"
:size="50"
:animate="true"
v-b-tooltip.hover :title="$t('severity.high')"
v-b-tooltip.hover :title="$t('vulnerability.high')"
>{{ currentHigh }}</vue-easy-pie-chart>
<vue-easy-pie-chart style="margin-right: 1rem"
:bar-color="severityMedium"
Expand All @@ -70,7 +70,7 @@
:percent="100"
:size="50"
:animate="true"
v-b-tooltip.hover :title="$t('severity.medium')"
v-b-tooltip.hover :title="$t('vulnerability.medium')"
>{{ currentMedium }}</vue-easy-pie-chart>
<vue-easy-pie-chart style="margin-right: 1rem"
:bar-color="severityLow"
Expand All @@ -82,7 +82,7 @@
:percent="100"
:size="50"
:animate="true"
v-b-tooltip.hover :title="$t('severity.low')"
v-b-tooltip.hover :title="$t('vulnerability.low')"
>{{ currentLow }}</vue-easy-pie-chart>
<vue-easy-pie-chart style="margin-right: 1rem"
:bar-color="severityUnassigned"
Expand All @@ -94,7 +94,7 @@
:percent="100"
:size="50"
:animate="true"
v-b-tooltip.hover :title="$t('severity.unassigned')"
v-b-tooltip.hover :title="$t('vulnerability.unassigned')"
>{{ currentUnassigned }}</vue-easy-pie-chart>
</b-row>
</b-col>
Expand Down

0 comments on commit a18631c

Please sign in to comment.