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
)

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 7, 2021
1 parent b6c982c commit 49a355f
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 49a355f

Please sign in to comment.