From 601af47e0ae208671270447b81b10f63a7338ec1 Mon Sep 17 00:00:00 2001 From: semd Date: Mon, 31 Jan 2022 10:58:46 +0100 Subject: [PATCH] fix toastLifeTimeMs and text updated --- x-pack/plugins/timelines/public/container/index.tsx | 4 ++-- x-pack/plugins/timelines/public/container/translations.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/x-pack/plugins/timelines/public/container/index.tsx b/x-pack/plugins/timelines/public/container/index.tsx index 4d5c7d0da8c9f..09f7e0f9c9448 100644 --- a/x-pack/plugins/timelines/public/container/index.tsx +++ b/x-pack/plugins/timelines/public/container/index.tsx @@ -420,13 +420,13 @@ const getRuntimeFieldSortWarningToast = ({ }) => ({ iconType: 'alert', title: i18n.ERROR_RUNTIME_FIELD_TIMELINE_EVENTS, - toastLifeTimeMs: Infinity, + toastLifeTimeMs: 300000, text: mountReactNode( <>

{text}

- {i18n.ERROR_RUNTIME_FIELD_RESET_SORT} + {i18n.ERROR_RUNTIME_FIELD_CLEAR_SORTING}
diff --git a/x-pack/plugins/timelines/public/container/translations.ts b/x-pack/plugins/timelines/public/container/translations.ts index ffe5cace6bab3..f4c7b3f894849 100644 --- a/x-pack/plugins/timelines/public/container/translations.ts +++ b/x-pack/plugins/timelines/public/container/translations.ts @@ -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', } );