summaryrefslogtreecommitdiffstats
path: root/app/server-control
diff options
context:
space:
mode:
authorGunnar Mills <gmills@us.ibm.com>2019-05-17 15:56:18 -0500
committerGunnar Mills <gmills@us.ibm.com>2019-05-17 17:48:30 -0500
commitaa4734d5a3a428d8797aabf41ae88de348204afb (patch)
tree9e79d1e884c34112b825196cbfd60ecea10ac1c4 /app/server-control
parentf61631eb669bdc95f00f26293ba4827ada0c670a (diff)
downloadphosphor-webui-aa4734d5a3a428d8797aabf41ae88de348204afb.tar.gz
phosphor-webui-aa4734d5a3a428d8797aabf41ae88de348204afb.zip
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>
Diffstat (limited to 'app/server-control')
-rw-r--r--app/server-control/controllers/power-operations-controller.js3
1 files changed, 3 insertions, 0 deletions
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 @@ window.angular && (function(angular) {
$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 @@ window.angular && (function(angular) {
$scope.warmRebootConfirm = function() {
if ($scope.confirm) {
+ // If another "confirm" is already shown return
return;
}
$scope.confirm = true;
OpenPOWER on IntegriCloud