Skip to content

Commit

Permalink
Fix incorrect message displayed on importing Timeline Templates (elas…
Browse files Browse the repository at this point in the history
…tic#101288)

Context:
The import button can be used to import both timelines and timeline templates.
In theory, one imported file could have multiple timelines and timeline templates at the same time.

Solution:
Since the import endpoint only returns the total count and not the type of the imported documents.
It seems like that rewording "timeline(s)" to "item(s)" is the most straightforward fix that solves
the user problem.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
machadoum and kibanamachine committed Jun 10, 2021
1 parent 2621efd commit a5ddb73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ export const SUCCESSFULLY_IMPORTED_TIMELINES = (totalCount: number) =>
{
values: { totalCount },
defaultMessage:
'Successfully imported {totalCount} {totalCount, plural, =1 {timeline} other {timelines}}',
'Successfully imported {totalCount} {totalCount, plural, =1 {item} other {items}}',
}
);

Expand Down

0 comments on commit a5ddb73

Please sign in to comment.