Skip to content
This repository has been archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #118 from flant/fix_for_7_1_0
Browse files Browse the repository at this point in the history
fix: Grafana 7.1.0 compatibility
  • Loading branch information
diafour authored Jul 21, 2020
2 parents b96d205 + a4d48eb commit 3e37a0c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 14 deletions.
6 changes: 2 additions & 4 deletions dist/module.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/module.js.map

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions dist/partials/options_editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ <h5 class="section-heading">Colors</h5>
</div>
<div class="gf-form">
<label class="gf-form-label">
<a class="pointer" tabindex="1" ng-click="editor.onRemoveThreshold($index)">
<i class="fa fa-trash"/>
</a>
<i class="fa fa-trash pointer" ng-click="editor.onRemoveThreshold($index)"></i>
</label>
</div>
</div>
Expand Down
4 changes: 1 addition & 3 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class StatusHeatmapCtrl extends MetricsPanelCtrl {
};

/** @ngInject */
constructor($scope: any, $injector: auto.IInjectorService, timeSrv, private annotationsSrv: AnnotationsSrv, $window, datasourceSrv, public variableSrv: any, templateSrv) {
constructor($scope: any, $injector: auto.IInjectorService, private annotationsSrv: AnnotationsSrv) {
super($scope, $injector);

if(!Polygrafill.hasAppEventCompatibleEmitter(this.events)){
Expand Down Expand Up @@ -197,8 +197,6 @@ class StatusHeatmapCtrl extends MetricsPanelCtrl {
this.annotations = [];
this.annotationsSrv = annotationsSrv;

this.timeSrv = timeSrv;

this.events.on(PanelEvents.render, this.onRender.bind(this));
this.events.on(PanelEvents.dataReceived, this.onDataReceived.bind(this));
this.events.on(PanelEvents.dataError, this.onDataError.bind(this));
Expand Down
4 changes: 1 addition & 3 deletions src/partials/options_editor.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,7 @@ <h5 class="section-heading">Colors</h5>
</div>
<div class="gf-form">
<label class="gf-form-label">
<a class="pointer" tabindex="1" ng-click="editor.onRemoveThreshold($index)">
<i class="fa fa-trash"/>
</a>
<i class="fa fa-trash pointer" ng-click="editor.onRemoveThreshold($index)"></i>
</label>
</div>
</div>
Expand Down

0 comments on commit 3e37a0c

Please # to comment.