diff --git a/public/app/features/alerting/unified/components/rules/EditRuleGroupModal.tsx b/public/app/features/alerting/unified/components/rules/EditRuleGroupModal.tsx
index f2650b72f94..ef6f901cf31 100644
--- a/public/app/features/alerting/unified/components/rules/EditRuleGroupModal.tsx
+++ b/public/app/features/alerting/unified/components/rules/EditRuleGroupModal.tsx
@@ -18,7 +18,7 @@ import { EvaluationIntervalLimitExceeded } from '../InvalidIntervalWarning';
interface ModalProps {
namespace: CombinedRuleNamespace;
group: CombinedRuleGroup;
- onClose: () => void;
+ onClose: (saved?: boolean) => void;
}
interface FormValues {
@@ -46,7 +46,7 @@ export function EditCloudGroupModal(props: ModalProps): React.ReactElement {
// close modal if successfully saved
useEffect(() => {
if (dispatched && !loading && !error) {
- onClose();
+ onClose(true);
}
}, [dispatched, loading, onClose, error]);
@@ -123,7 +123,13 @@ export function EditCloudGroupModal(props: ModalProps): React.ReactElement {
)}
-