Remove superfluous alert from pause text

This commit is contained in:
Tom Ratcliffe 2024-03-28 15:20:40 +00:00 committed by Tom Ratcliffe
parent 30471c340a
commit 2ca5e43a65
2 changed files with 3 additions and 3 deletions

View File

@ -155,8 +155,8 @@ const ui = {
more: byRole('button', { name: 'More' }),
},
moreActionItems: {
pause: byRole('menuitem', { name: /pause alert evaluation/i }),
resume: byRole('menuitem', { name: /resume alert evaluation/i }),
pause: byRole('menuitem', { name: /pause evaluation/i }),
resume: byRole('menuitem', { name: /resume evaluation/i }),
},
};

View File

@ -23,7 +23,7 @@ const MenuItemPauseRule = ({ rule, onPauseChange }: Props) => {
const [updateRule] = alertRuleApi.endpoints.updateRule.useMutation();
const isPaused = isGrafanaRulerRule(rule.rulerRule) && isGrafanaRulerRulePaused(rule.rulerRule);
const icon = isPaused ? 'play' : 'pause';
const title = isPaused ? 'Resume alert evaluation' : 'Pause alert evaluation';
const title = isPaused ? 'Resume evaluation' : 'Pause evaluation';
/**
* Triggers API call to update the current rule to the new `is_paused` state