/*! grafana - v4.5.1 - 2017-09-19
 * Copyright (c) 2017 Torkel Ödegaard; Licensed Apache-2.0 */

System.register(["app/core/core"],function(a,b){"use strict";var c,d;b&&b.id;return{setters:[function(a){c=a}],execute:function(){d=function(){function a(a,b,c){this.backendSrv=a,this.$scope=b,this.loadNotifications(),this.navModel=c.getAlertingNav(1)}return a.$inject=["backendSrv","$scope","navModelSrv"],a.prototype.loadNotifications=function(){var a=this;this.backendSrv.get("/api/alert-notifications").then(function(b){a.notifications=b})},a.prototype.deleteNotification=function(a){var b=this;this.backendSrv.delete("/api/alert-notifications/"+a).then(function(){b.notifications=b.notifications.filter(function(b){return b.id!==a})})},a}(),a("AlertNotificationsListCtrl",d),c.coreModule.controller("AlertNotificationsListCtrl",d)}}});