feat(alerting): add delete button for removing alerts
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -72,4 +72,8 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="editor-row">
|
||||
<div class="gf-form-button-row">
|
||||
<button class="btn btn-warning" ng-click="alertTab.markAsDeleted()">Delete Alert</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user