Skip to content

Commit

Permalink
fix toastLifeTimeMs and text updated
Browse files Browse the repository at this point in the history
  • Loading branch information
semd committed Jan 31, 2022
1 parent 503c6fd commit 601af47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions x-pack/plugins/timelines/public/container/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -420,13 +420,13 @@ const getRuntimeFieldSortWarningToast = ({
}) => ({
iconType: 'alert',
title: i18n.ERROR_RUNTIME_FIELD_TIMELINE_EVENTS,
toastLifeTimeMs: Infinity,
toastLifeTimeMs: 300000,
text: mountReactNode(
<>
<p>{text}</p>
<div className="eui-textRight">
<EuiButton size="s" color="warning" onClick={resetSort}>
{i18n.ERROR_RUNTIME_FIELD_RESET_SORT}
{i18n.ERROR_RUNTIME_FIELD_CLEAR_SORTING}
</EuiButton>
</div>
</>
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/timelines/public/container/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ export const ERROR_RUNTIME_FIELD_TIMELINE_EVENTS = i18n.translate(
}
);

export const ERROR_RUNTIME_FIELD_RESET_SORT = i18n.translate(
export const ERROR_RUNTIME_FIELD_CLEAR_SORTING = i18n.translate(
'xpack.timelines.timelineEvents.errorRuntimeFieldSearchButton',
{
defaultMessage: 'Reset sort',
defaultMessage: 'Clear sorting',
}
);

0 comments on commit 601af47

Please sign in to comment.