Skip to content

Commit

Permalink
fixed i18n strings for error notification and refactored success for …
Browse files Browse the repository at this point in the history
…consistency
  • Loading branch information
jloleysens committed Jan 24, 2022
1 parent 05b0004 commit bfd1e40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/reporting/public/notifier/job_failure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const getFailureToast = (
title: toMountPoint(
<FormattedMessage
id="xpack.reporting.publicNotifier.error.couldNotCreateReportTitle"
defaultMessage="Could not create {reportType} report for {reportObjectType} '{reportObjectTitle}'."
defaultMessage="Could not create {reportType} report for '{reportObjectTitle}'."
values={{ reportType: job.jobtype, reportObjectTitle: job.title }}
/>,
{ theme$: theme.theme$ }
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/reporting/public/notifier/job_success.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export const getSuccessToast = (
title: toMountPoint(
<FormattedMessage
id="xpack.reporting.publicNotifier.successfullyCreatedReportNotificationTitle"
defaultMessage="Created {reportObjectType} report for '{reportObjectTitle}'"
values={{ reportObjectType: job.jobtype, reportObjectTitle: job.title }}
defaultMessage="Created {reportType} report for '{reportObjectTitle}'"
values={{ reportType: job.jobtype, reportObjectTitle: job.title }}
/>,
{ theme$: theme.theme$ }
),
Expand Down

0 comments on commit bfd1e40

Please sign in to comment.