@@ -102,16 +102,30 @@ export const ACTION_INVESTIGATE_IN_TIMELINE = i18n.translate(
102102 }
103103) ;
104104
105- export const CLOSED_ALERT_TOAST = ( totalAlerts : number ) =>
106- i18n . translate ( 'xpack.siem.detectionEngine.signals.closedAlertToastMessage ' , {
105+ export const CLOSED_ALERT_SUCCESS_TOAST = ( totalAlerts : number ) =>
106+ i18n . translate ( 'xpack.siem.detectionEngine.signals.closedAlertSuccessToastMessage ' , {
107107 values : { totalAlerts } ,
108108 defaultMessage :
109- 'Successfully Closed {totalAlerts} {totalAlerts, plural, =1 {Alert } other {Alerts }}.' ,
109+ 'Successfully closed {totalAlerts} {totalAlerts, plural, =1 {alert } other {alerts }}.' ,
110110 } ) ;
111111
112- export const OPENED_ALERT_TOAST = ( totalAlerts : number ) =>
113- i18n . translate ( 'xpack.siem.detectionEngine.signals.openedAlertToastMessage ' , {
112+ export const OPENED_ALERT_SUCCESS_TOAST = ( totalAlerts : number ) =>
113+ i18n . translate ( 'xpack.siem.detectionEngine.signals.openedAlertSuccessToastMessage ' , {
114114 values : { totalAlerts } ,
115115 defaultMessage :
116- 'Successfully Opened {totalAlerts} {totalAlerts, plural, =1 {Alert} other {Alerts}}.' ,
116+ 'Successfully opened {totalAlerts} {totalAlerts, plural, =1 {alert} other {alerts}}.' ,
117+ } ) ;
118+
119+ export const CLOSED_ALERT_FAILED_TOAST = ( totalAlerts : number ) =>
120+ i18n . translate ( 'xpack.siem.detectionEngine.signals.closedAlertFailedToastMessage' , {
121+ values : { totalAlerts } ,
122+ defaultMessage :
123+ 'Failed to close {totalAlerts} {totalAlerts, plural, =1 {alert} other {alerts}}.' ,
124+ } ) ;
125+
126+ export const OPENED_ALERT_FAILED_TOAST = ( totalAlerts : number ) =>
127+ i18n . translate ( 'xpack.siem.detectionEngine.signals.openedAlertFailedToastMessage' , {
128+ values : { totalAlerts } ,
129+ defaultMessage :
130+ 'Failed to open {totalAlerts} {totalAlerts, plural, =1 {alert} other {alerts}}.' ,
117131 } ) ;
0 commit comments