File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
x-pack/plugins/monitoring/public/alerts/lib Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,24 @@ const showUnableToDisableWatcherClusterAlertsError = () => {
8181 } ) ;
8282} ;
8383
84+ const showDisabledWatcherClusterAlertsError = ( ) => {
85+ Legacy . shims . toastNotifications . addWarning ( {
86+ title : toMountPoint (
87+ < FormattedMessage
88+ id = "xpack.monitoring.healthCheck.disabledWatches.title"
89+ defaultMessage = "New alerts created"
90+ />
91+ ) ,
92+ text : toMountPoint (
93+ < p >
94+ { i18n . translate ( 'xpack.monitoring.healthCheck.disabledWatches.text' , {
95+ defaultMessage : `Review the alert definition using Setup mode and configure additional action connectors to get notified via your favorite method.` ,
96+ } ) }
97+ </ p >
98+ ) ,
99+ } ) ;
100+ } ;
101+
84102export const showAlertsToast = ( response : EnableAlertResponse ) => {
85103 const {
86104 isSufficientlySecure,
@@ -92,5 +110,7 @@ export const showAlertsToast = (response: EnableAlertResponse) => {
92110 showTlsAndEncryptionError ( ) ;
93111 } else if ( disabledWatcherClusterAlerts === false ) {
94112 showUnableToDisableWatcherClusterAlertsError ( ) ;
113+ } else if ( disabledWatcherClusterAlerts === true ) {
114+ showDisabledWatcherClusterAlertsError ( ) ;
95115 }
96116} ;
You can’t perform that action at this time.
0 commit comments