mirror of
https://github.com/timberjoegithub/grafana-statusmap.git
synced 2026-07-22 15:53:09 +00:00
status-heatmap-plugin for Grafana
- fixes for 5.1.3 - nulls as empty
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user