status-heatmap-plugin for Grafana

- fixes for 5.1.3
- nulls as empty
This commit is contained in:
Ivan Mikheykin
2018-08-21 16:10:59 +03:00
commit 06afdc1ee8
54 changed files with 2174 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import kbn from 'app/core/utils/kbn';
export class StatusHeatmapOptionsEditorCtrl {
constructor($scope) {
$scope.editor = this;
this.panelCtrl = $scope.ctrl;
this.panel = this.panelCtrl.panel;
this.unitFormats = kbn.getUnitFormats();
this.panelCtrl.render();
}
setUnitFormat(subItem) {
this.panel.data.unitFormat = subItem.value;
this.panelCtrl.render();
}
}
export function statusHeatmapOptionsEditor() {
'use strict';
return {
restrict: 'E',
scope: true,
templateUrl: 'public/plugins/status-heatmap-panel/partials/options_editor.html',
controller: StatusHeatmapOptionsEditorCtrl,
};
}