Commit a4824085 by Torkel Ödegaard

Removed unused alertingSrv

parent 874792df
import coreModule from 'app/core/core_module';
export class AlertingSrv {
dashboard: any;
alerts: any[];
init(dashboard, alerts) {
this.dashboard = dashboard;
this.alerts = alerts || [];
}
}
coreModule.service('alertingSrv', AlertingSrv);
...@@ -22,7 +22,6 @@ export class DashboardCtrl { ...@@ -22,7 +22,6 @@ export class DashboardCtrl {
private keybindingSrv, private keybindingSrv,
private timeSrv, private timeSrv,
private variableSrv, private variableSrv,
private alertingSrv,
private dashboardSrv, private dashboardSrv,
private unsavedChangesSrv, private unsavedChangesSrv,
private dashboardViewStateSrv, private dashboardViewStateSrv,
...@@ -54,7 +53,6 @@ export class DashboardCtrl { ...@@ -54,7 +53,6 @@ export class DashboardCtrl {
// init services // init services
this.timeSrv.init(dashboard); this.timeSrv.init(dashboard);
this.alertingSrv.init(dashboard, data.alerts);
this.annotationsSrv.init(dashboard); this.annotationsSrv.init(dashboard);
// template values service needs to initialize completely before // template values service needs to initialize completely before
......
import './dashboard_ctrl'; import './dashboard_ctrl';
import './alerting_srv';
import './dashboard_loader_srv'; import './dashboard_loader_srv';
import './save_as_modal'; import './save_as_modal';
import './save_modal'; import './save_modal';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment