prettier: ran on all files again, sorry. now settings are defined in package.json

This commit is contained in:
Torkel Ödegaard
2017-12-21 08:39:31 +01:00
parent af34f9977e
commit 3a1f52d8a2
262 changed files with 3996 additions and 7431 deletions

View File

@@ -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: '=',
},
};
});