From 01b804c5167cd249ce13051c16dd0dcbda8f2a41 Mon Sep 17 00:00:00 2001 From: Egor Shamardin <33912805+LightOfHeaven1994@users.noreply.github.com> Date: Tue, 8 Oct 2024 21:00:36 +0200 Subject: [PATCH] fix(RHINENG-13529): Make PDF export naming consistent (#2154) --- locales/en.json | 2 +- src/Components/PresentationalComponents/Kebab/KebabItems.js | 2 +- .../SmartComponents/Reports/DownloadCVEsReport.js | 2 +- .../SmartComponents/Reports/DownloadSystemsReport.js | 2 +- src/Messages.js | 6 +++--- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/locales/en.json b/locales/en.json index 0354be54b..1d56dd974 100644 --- a/locales/en.json +++ b/locales/en.json @@ -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.", diff --git a/src/Components/PresentationalComponents/Kebab/KebabItems.js b/src/Components/PresentationalComponents/Kebab/KebabItems.js index 7d1a39d8c..1fcaf3e48 100644 --- a/src/Components/PresentationalComponents/Kebab/KebabItems.js +++ b/src/Components/PresentationalComponents/Kebab/KebabItems.js @@ -10,7 +10,7 @@ export const kebabItemDownloadPDF = (loading, downloadReport, props = {}) => ( className="pf-v5-c-dropdown__menu-item" onClick={() => downloadReport(true)} {...props} > - {loading ? : } + {loading ? : } ); diff --git a/src/Components/SmartComponents/Reports/DownloadCVEsReport.js b/src/Components/SmartComponents/Reports/DownloadCVEsReport.js index 58cce478d..21ba0d723 100644 --- a/src/Components/SmartComponents/Reports/DownloadCVEsReport.js +++ b/src/Components/SmartComponents/Reports/DownloadCVEsReport.js @@ -187,7 +187,7 @@ const DownloadCVEsReport = ({ }; DownloadCVEsReport.defaultProps = { - label: messages.kebabExportAsPDF, + label: messages.kebabexportToPDF, shouldUseHybridSystemFilter: false }; diff --git a/src/Components/SmartComponents/Reports/DownloadSystemsReport.js b/src/Components/SmartComponents/Reports/DownloadSystemsReport.js index bf1fab7cc..463d6601d 100644 --- a/src/Components/SmartComponents/Reports/DownloadSystemsReport.js +++ b/src/Components/SmartComponents/Reports/DownloadSystemsReport.js @@ -110,7 +110,7 @@ const DownloadSystemsReport = ({ }; DownloadSystemsReport.defaultProps = { - label: messages.kebabExportAsPDF + label: messages.kebabexportToPDF }; DownloadSystemsReport.propTypes = { diff --git a/src/Messages.js b/src/Messages.js index bedd4eea0..fc7aaafbf 100644 --- a/src/Messages.js +++ b/src/Messages.js @@ -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',