Skip to content

Commit

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

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>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
machadoum and kibanamachine committed Jun 10, 2021
1 parent 560517f commit 59b05c4
Showing 1 changed file with 1 addition and 1 deletion.
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 59b05c4

Please sign in to comment.