mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
5b13220762
commit
3fc8860a28
1 changed files with 20 additions and 0 deletions
|
@ -81,6 +81,24 @@ const showUnableToDisableWatcherClusterAlertsError = () => {
|
|||
});
|
||||
};
|
||||
|
||||
const showDisabledWatcherClusterAlertsError = () => {
|
||||
Legacy.shims.toastNotifications.addWarning({
|
||||
title: toMountPoint(
|
||||
<FormattedMessage
|
||||
id="xpack.monitoring.healthCheck.disabledWatches.title"
|
||||
defaultMessage="New alerts created"
|
||||
/>
|
||||
),
|
||||
text: toMountPoint(
|
||||
<p>
|
||||
{i18n.translate('xpack.monitoring.healthCheck.disabledWatches.text', {
|
||||
defaultMessage: `Review the alert definition using Setup mode and configure additional action connectors to get notified via your favorite method.`,
|
||||
})}
|
||||
</p>
|
||||
),
|
||||
});
|
||||
};
|
||||
|
||||
export const showAlertsToast = (response: EnableAlertResponse) => {
|
||||
const {
|
||||
isSufficientlySecure,
|
||||
|
@ -92,5 +110,7 @@ export const showAlertsToast = (response: EnableAlertResponse) => {
|
|||
showTlsAndEncryptionError();
|
||||
} else if (disabledWatcherClusterAlerts === false) {
|
||||
showUnableToDisableWatcherClusterAlertsError();
|
||||
} else if (disabledWatcherClusterAlerts === true) {
|
||||
showDisabledWatcherClusterAlertsError();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue