mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 19:30:36 -06:00
Removed unused alertingSrv
This commit is contained in:
parent
874792dfcb
commit
a4824085e3
@ -1,13 +0,0 @@
|
|||||||
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 {
|
|||||||
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 {
|
|||||||
|
|
||||||
// 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
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
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';
|
||||||
|
Loading…
Reference in New Issue
Block a user