File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
frontend/src/pages/AlertDetails Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ function AlertActionButtons({
111
111
return (
112
112
< >
113
113
< div className = "alert-action-buttons" >
114
- < Tooltip title = { alertRuleState ? 'Enable alert' : 'Disable alert' } >
114
+ < Tooltip title = { isAlertRuleDisabled ? 'Enable alert' : 'Disable alert' } >
115
115
{ isAlertRuleDisabled !== undefined && (
116
116
< Switch
117
117
size = "small"
Original file line number Diff line number Diff line change @@ -394,7 +394,7 @@ export const useAlertRuleStatusToggle = ({
394
394
{
395
395
onSuccess : ( data ) => {
396
396
setAlertRuleState ( data ?. payload ?. state ) ;
397
-
397
+ queryClient . refetchQueries ( [ REACT_QUERY_KEY . ALERT_RULE_DETAILS , ruleId ] ) ;
398
398
notifications . success ( {
399
399
message : `Alert has been ${
400
400
data ?. payload ?. state === 'disabled' ? 'disabled' : 'enabled'
You can’t perform that action at this time.
0 commit comments