mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
prettier: ran on all files again, sorry. now settings are defined in package.json
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
///<reference path="../../../headers/common.d.ts" />
|
||||
|
||||
import coreModule from "app/core/core_module";
|
||||
import coreModule from 'app/core/core_module';
|
||||
|
||||
export class ThresholdFormCtrl {
|
||||
panelCtrl: any;
|
||||
@@ -15,7 +15,7 @@ export class ThresholdFormCtrl {
|
||||
this.disabled = true;
|
||||
}
|
||||
|
||||
var unbindDestroy = $scope.$on("$destroy", () => {
|
||||
var unbindDestroy = $scope.$on('$destroy', () => {
|
||||
this.panelCtrl.editingThresholds = false;
|
||||
this.panelCtrl.render();
|
||||
unbindDestroy();
|
||||
@@ -27,10 +27,10 @@ export class ThresholdFormCtrl {
|
||||
addThreshold() {
|
||||
this.panel.thresholds.push({
|
||||
value: undefined,
|
||||
colorMode: "critical",
|
||||
op: "gt",
|
||||
colorMode: 'critical',
|
||||
op: 'gt',
|
||||
fill: true,
|
||||
line: true
|
||||
line: true,
|
||||
});
|
||||
this.panelCtrl.render();
|
||||
}
|
||||
@@ -129,15 +129,15 @@ var template = `
|
||||
</div>
|
||||
`;
|
||||
|
||||
coreModule.directive("graphThresholdForm", function() {
|
||||
coreModule.directive('graphThresholdForm', function() {
|
||||
return {
|
||||
restrict: "E",
|
||||
restrict: 'E',
|
||||
template: template,
|
||||
controller: ThresholdFormCtrl,
|
||||
bindToController: true,
|
||||
controllerAs: "ctrl",
|
||||
controllerAs: 'ctrl',
|
||||
scope: {
|
||||
panelCtrl: "="
|
||||
}
|
||||
panelCtrl: '=',
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user