Skip to content

Commit

Permalink
fix(RHINENG-13529): Make PDF export naming consistent (#2154)
Browse files Browse the repository at this point in the history
  • Loading branch information
LightOfHeaven1994 authored Oct 8, 2024
1 parent 7129ded commit 01b804c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
"justificationNote": "Justification note",
"kebab.editBusinnesRisk": "Edit business risk",
"kebab.editStatus": "Edit status",
"kebab.exportAsPDF": "Export as PDF",
"kebab.exportToPDF": "Export to PDF",
"knowledgebasearticle": "Knowledgebase article",
"knownExploit": "Known exploit",
"knownExploitDescription": "This CVE is identified with a “Known exploit” label because Red Hat has determined this CVE has a public exploit. This CVE is unpatched on your system. CVEs with this label should be addressed with high priority due to the risks posed by them. “Known exploit” does not mean we have taken steps to determine if the CVE has been exploited in your environment.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const kebabItemDownloadPDF = (loading, downloadReport, props = {}) => (
className="pf-v5-c-dropdown__menu-item"
onClick={() => downloadReport(true)} {...props}
>
{loading ? <FormattedMessage {...messages.loading} /> : <FormattedMessage {...messages.kebabExportAsPDF} />}
{loading ? <FormattedMessage {...messages.loading} /> : <FormattedMessage {...messages.kebabexportToPDF} />}
</button>
</DropdownItem>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ const DownloadCVEsReport = ({
};

DownloadCVEsReport.defaultProps = {
label: messages.kebabExportAsPDF,
label: messages.kebabexportToPDF,
shouldUseHybridSystemFilter: false
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const DownloadSystemsReport = ({
};

DownloadSystemsReport.defaultProps = {
label: messages.kebabExportAsPDF
label: messages.kebabexportToPDF
};

DownloadSystemsReport.propTypes = {
Expand Down
6 changes: 3 additions & 3 deletions src/Messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -1412,10 +1412,10 @@ export default defineMessages({
description: 'Title label for systems PDF report',
defaultMessage: 'Insights Vulnerability Systems report'
},
kebabExportAsPDF: {
id: 'kebab.exportAsPDF',
kebabexportToPDF: {
id: 'kebab.exportToPDF',
description: 'Kebab item',
defaultMessage: 'Export as PDF'
defaultMessage: 'Export to PDF'
},
kebabEditBusinessRisk: {
id: 'kebab.editBusinnesRisk',
Expand Down

0 comments on commit 01b804c

Please sign in to comment.