Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(RHINENG-13529): Make PDF export naming consistent #2154

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading