Chore: clean up

This commit is contained in:
Alexander Zobnin
2020-05-08 17:31:17 +03:00
parent 04715e94c8
commit 32543f3380

View File

@@ -81,19 +81,14 @@ const triggerStatusMap = {
export class TriggerPanelCtrl extends MetricsPanelCtrl {
/** @ngInject */
constructor($scope, $injector, $timeout, templateSrv, contextSrv, dashboardSrv, timeSrv) {
constructor($scope, $injector, $timeout) {
super($scope, $injector);
this.templateSrv = templateSrv;
this.contextSrv = contextSrv;
this.dashboardSrv = dashboardSrv;
this.timeSrv = timeSrv;
this.scope = $scope;
this.$timeout = $timeout;
// Tell Grafana do not convert data frames to table or series
this.useDataFrames = true;
this.editorTabIndex = 1;
this.triggerStatusMap = triggerStatusMap;
this.defaultTimeFormat = DEFAULT_TIME_FORMAT;
this.pageIndex = 0;