feat(alerting): remove delete option from alerts page
This commit is contained in:
@@ -23,16 +23,6 @@ export class AlertPageCtrl {
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
deleteAlert(alert) {
|
||||
this.backendSrv.delete('/api/alerts/' + alert.id).then(result => {
|
||||
if (result.alertId) {
|
||||
this.alerts = this.alerts.filter(alert => {
|
||||
return alert.id !== result.alertId;
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
coreModule.controller('AlertPageCtrl', AlertPageCtrl);
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
<th style="min-width: 200px"><strong>Name</strong></th>
|
||||
<th style="width: 1%">State</th>
|
||||
<th style="width: 1%"></th>
|
||||
<th style="width: 1%"></th>
|
||||
</thead>
|
||||
<tr ng-repeat="alert in ctrl.alerts">
|
||||
<td>
|
||||
@@ -30,11 +29,6 @@
|
||||
edit
|
||||
</a>
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<a ng-click="ctrl.deleteAlert(alert)" class="btn btn-danger btn-small">
|
||||
<i class="fa fa-remove"></i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user