mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: fix response popover prompt when add notification channels (#18967)
This commit is contained in:
@@ -64,6 +64,7 @@ func (n *notificationService) sendAndMarkAsComplete(evalContext *EvalContext, no
|
||||
if err != nil {
|
||||
n.log.Error("failed to send notification", "uid", notifier.GetNotifierUID(), "error", err)
|
||||
metrics.MAlertingNotificationFailed.WithLabelValues(notifier.GetType()).Inc()
|
||||
return err
|
||||
}
|
||||
|
||||
if evalContext.IsTestRun {
|
||||
@@ -108,6 +109,7 @@ func (n *notificationService) sendNotifications(evalContext *EvalContext, notifi
|
||||
err := n.sendNotification(evalContext, notifierState)
|
||||
if err != nil {
|
||||
n.log.Error("failed to send notification", "uid", notifierState.notifier.GetNotifierUID(), "error", err)
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -121,9 +121,7 @@ export class AlertNotificationEditCtrl {
|
||||
settings: this.model.settings,
|
||||
};
|
||||
|
||||
this.backendSrv.post(`/api/alert-notifications/test`, payload).then((res: any) => {
|
||||
appEvents.emit('alert-success', ['Test notification sent', '']);
|
||||
});
|
||||
this.backendSrv.post(`/api/alert-notifications/test`, payload);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user