changed var to const 2 (#13068)

* changed var to const

* fixed typo created in last commit

* added or empty object to options in prometheus/datasource
This commit is contained in:
Patrick O'Carroll
2018-08-29 14:27:29 +02:00
committed by Torkel Ödegaard
parent 5e0d0c5816
commit a702603e7b
64 changed files with 667 additions and 666 deletions

View File

@@ -13,7 +13,7 @@ export class ThresholdFormCtrl {
this.disabled = true;
}
var unbindDestroy = $scope.$on('$destroy', () => {
const unbindDestroy = $scope.$on('$destroy', () => {
this.panelCtrl.editingThresholds = false;
this.panelCtrl.render();
unbindDestroy();
@@ -58,7 +58,7 @@ export class ThresholdFormCtrl {
}
}
var template = `
const template = `
<div class="gf-form-group">
<h5>Thresholds</h5>
<p class="muted" ng-show="ctrl.disabled">