mirror of
https://github.com/grafana/grafana.git
synced 2024-12-01 21:19:28 -06:00
Remove superfluous alert
from pause text
This commit is contained in:
parent
30471c340a
commit
2ca5e43a65
@ -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 }),
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user