Rename variables to follow lowerCamelCase
OpenBMC follows Google JavaScript Style Guide.
https://google.github.io/styleguide/jsguide.html#naming-local-variable-names
https://github.com/openbmc/docs/blob/master/CONTRIBUTING.md#javascript
Change-Id: I0be270d8cb8f219f048626591e6b623c4307eef7
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/app/server-control/controllers/power-operations-controller.js b/app/server-control/controllers/power-operations-controller.js
index 1a1f355..83e6580 100644
--- a/app/server-control/controllers/power-operations-controller.js
+++ b/app/server-control/controllers/power-operations-controller.js
@@ -17,11 +17,11 @@
$interpolate, $q, toastService) {
$scope.dataService = dataService;
$scope.confirm = false;
- $scope.power_confirm = false;
- $scope.warmboot_confirm = false;
- $scope.coldboot_confirm = false;
- $scope.orderly_confirm = false;
- $scope.immediately_confirm = false;
+ $scope.powerConfirm = false;
+ $scope.confirmWarmReboot = false;
+ $scope.confirmColdReboot = false;
+ $scope.confirmOrderlyShutdown = false;
+ $scope.confirmImmediateShutdown = false;
$scope.loading = true;
var pollChassisStatusTimer = undefined;
@@ -33,9 +33,9 @@
.then(
function(data) {
if (data.data == 0) {
- $scope.power_time = 'not available';
+ $scope.powerTime = 'not available';
} else {
- $scope.power_time = data.data;
+ $scope.powerTime = data.data;
}
},
function(error) {
@@ -73,7 +73,7 @@
return;
}
$scope.confirm = true;
- $scope.power_confirm = true;
+ $scope.powerConfirm = true;
};
function pollChassisStatusTillOff() {
@@ -136,7 +136,7 @@
return;
}
$scope.confirm = true;
- $scope.warmboot_confirm = true;
+ $scope.confirmWarmReboot = true;
};
$scope.coldReboot = function() {
@@ -172,7 +172,7 @@
return;
}
$scope.confirm = true;
- $scope.coldboot_confirm = true;
+ $scope.confirmColdReboot = true;
};
$scope.orderlyShutdown = function() {
@@ -203,7 +203,7 @@
return;
}
$scope.confirm = true;
- $scope.orderly_confirm = true;
+ $scope.confirmOrderlyShutdown = true;
};
$scope.immediateShutdown = function() {
@@ -232,7 +232,7 @@
return;
}
$scope.confirm = true;
- $scope.immediately_confirm = true;
+ $scope.confirmImmediateShutdown = true;
};
}
]);