[Uptime]Alerting UI text in case filter is selected (#62570)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
bfdccfdbc5
commit
8cacbdfaa5
|
@ -17,7 +17,7 @@ interface Props {
|
|||
|
||||
export const UptimeAlertsFlyoutWrapper = ({ alertTypeId, canChangeTrigger }: Props) => {
|
||||
const dispatch = useDispatch();
|
||||
const setAddFlyoutVisiblity = (value: React.SetStateAction<boolean>) =>
|
||||
const setAddFlyoutVisibility = (value: React.SetStateAction<boolean>) =>
|
||||
// @ts-ignore the value here is a boolean, and it works with the action creator function
|
||||
dispatch(setAlertFlyoutVisible(value));
|
||||
|
||||
|
@ -28,7 +28,7 @@ export const UptimeAlertsFlyoutWrapper = ({ alertTypeId, canChangeTrigger }: Pro
|
|||
alertFlyoutVisible={alertFlyoutVisible}
|
||||
alertTypeId={alertTypeId}
|
||||
canChangeTrigger={canChangeTrigger}
|
||||
setAlertFlyoutVisibility={setAddFlyoutVisiblity}
|
||||
setAlertFlyoutVisibility={setAddFlyoutVisibility}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
|
|
@ -268,7 +268,21 @@ export const AlertMonitorStatusComponent: React.FC<AlertMonitorStatusProps> = pr
|
|||
/>
|
||||
}
|
||||
data-test-subj="xpack.uptime.alerts.monitorStatus.numTimesExpression"
|
||||
description="any monitor is down >"
|
||||
description={
|
||||
filters
|
||||
? i18n.translate(
|
||||
'xpack.uptime.alerts.monitorStatus.numTimesExpression.matchingMonitors.description',
|
||||
{
|
||||
defaultMessage: 'matching monitors are down >',
|
||||
}
|
||||
)
|
||||
: i18n.translate(
|
||||
'xpack.uptime.alerts.monitorStatus.numTimesExpression.anyMonitors.description',
|
||||
{
|
||||
defaultMessage: 'any monitor is down >',
|
||||
}
|
||||
)
|
||||
}
|
||||
id="ping-count"
|
||||
value={`${numTimes} times`}
|
||||
/>
|
||||
|
|
Loading…
Reference in a new issue