From ebb754dd02b259b111f7f82ceedc8a518a968856 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Yulia=20=C4=8Cech?=
<6585477+yuliacech@users.noreply.github.com>
Date: Mon, 21 Nov 2022 11:09:16 +0100
Subject: [PATCH] [Guided onboarding] Copy update for error handling and
loading state (#145748)
## Summary
This PR updates the copy for the error handling and loading state in
guided onboarding. Follow up to
https://github.com/elastic/kibana/pull/145228
(cherry picked from commit f982f4684002cc069f832f30fcf6e78438fe5842)
---
.../guided_onboarding/public/components/guide_panel.tsx | 4 ++--
.../public/components/quit_guide_modal.tsx | 2 +-
.../components/guided_onboarding/getting_started.tsx | 8 ++++----
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/plugins/guided_onboarding/public/components/guide_panel.tsx b/src/plugins/guided_onboarding/public/components/guide_panel.tsx
index a31083a384a266..e8c60786c98709 100644
--- a/src/plugins/guided_onboarding/public/components/guide_panel.tsx
+++ b/src/plugins/guided_onboarding/public/components/guide_panel.tsx
@@ -112,7 +112,7 @@ export const GuidePanel = ({ api, application, notifications }: GuidePanelProps)
} catch (error) {
notifications.toasts.addDanger({
title: i18n.translate('guidedOnboarding.dropdownPanel.stepHandlerError', {
- defaultMessage: 'Unable to update the guide. Please try again later.',
+ defaultMessage: 'Unable to update the guide. Wait a moment and try again.',
}),
text: error.message,
});
@@ -138,7 +138,7 @@ export const GuidePanel = ({ api, application, notifications }: GuidePanelProps)
} catch (error) {
notifications.toasts.addDanger({
title: i18n.translate('guidedOnboarding.dropdownPanel.completeGuideError', {
- defaultMessage: 'Unable to update the guide. Please try again later.',
+ defaultMessage: 'Unable to update the guide. Wait a moment and try again.',
}),
text: error.message,
});
diff --git a/src/plugins/guided_onboarding/public/components/quit_guide_modal.tsx b/src/plugins/guided_onboarding/public/components/quit_guide_modal.tsx
index a50dd28c677b0b..6765e7a4ecbf9c 100644
--- a/src/plugins/guided_onboarding/public/components/quit_guide_modal.tsx
+++ b/src/plugins/guided_onboarding/public/components/quit_guide_modal.tsx
@@ -46,7 +46,7 @@ export const QuitGuideModal = ({
setIsLoading(false);
notifications.toasts.addDanger({
title: i18n.translate('guidedOnboarding.quitGuideModal.deactivateGuideError', {
- defaultMessage: 'Unable to update the guide. Please try again later.',
+ defaultMessage: 'Unable to update the guide. Wait a moment and try again.',
}),
text: error.message,
});
diff --git a/src/plugins/home/public/application/components/guided_onboarding/getting_started.tsx b/src/plugins/home/public/application/components/guided_onboarding/getting_started.tsx
index 6e4d605cc30b3e..15fc9953ba819e 100644
--- a/src/plugins/home/public/application/components/guided_onboarding/getting_started.tsx
+++ b/src/plugins/home/public/application/components/guided_onboarding/getting_started.tsx
@@ -120,7 +120,7 @@ export const GettingStarted = () => {
} catch (err) {
getServices().toastNotifications.addDanger({
title: i18n.translate('home.guidedOnboarding.gettingStarted.activateGuide.errorMessage', {
- defaultMessage: 'Unable to start the guide. Please try again later.',
+ defaultMessage: 'Unable to start the guide. Wait a moment and try again.',
}),
text: err.message,
});
@@ -134,7 +134,7 @@ export const GettingStarted = () => {
body={