diff --git a/public/app/plugins/panel/graph/alert_tab_ctrl.ts b/public/app/plugins/panel/graph/alert_tab_ctrl.ts index 4aca42c56a7..ca5b8aa37f0 100644 --- a/public/app/plugins/panel/graph/alert_tab_ctrl.ts +++ b/public/app/plugins/panel/graph/alert_tab_ctrl.ts @@ -46,6 +46,12 @@ export class AlertTabCtrl { } } + markAsDeleted() { + if (this.panel.alerting) { + this.panel.alerting.queryRef = this.metricTargets[0].refId; + } + } + thresholdsUpdated() { if (this.panel.alerting.warnLevel) { this.panel.grid.threshold1 = parseInt(this.panel.alerting.warnLevel); diff --git a/public/app/plugins/panel/graph/partials/tab_alerting.html b/public/app/plugins/panel/graph/partials/tab_alerting.html index 0f78b5558fb..db04ef8e8e1 100644 --- a/public/app/plugins/panel/graph/partials/tab_alerting.html +++ b/public/app/plugins/panel/graph/partials/tab_alerting.html @@ -72,4 +72,8 @@ - +
+
+ +
+