Added comments to help clarify "confirm"
For the next person digging in this code. :)
Change-Id: Ib6c21da3fb53a4277a90bf2e5cab90ed29496724
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 c82d36f..0993d72 100644
--- a/app/server-control/controllers/power-operations-controller.js
+++ b/app/server-control/controllers/power-operations-controller.js
@@ -16,6 +16,8 @@
$scope, APIUtils, dataService, Constants, $timeout, $interval,
$interpolate, $q, toastService) {
$scope.dataService = dataService;
+ // Is a || of the other 4 "confirm" variables to ensure only
+ // one confirm is shown at a time.
$scope.confirm = false;
$scope.confirmWarmReboot = false;
$scope.confirmColdReboot = false;
@@ -116,6 +118,7 @@
$scope.warmRebootConfirm = function() {
if ($scope.confirm) {
+ // If another "confirm" is already shown return
return;
}
$scope.confirm = true;