diff options
Diffstat (limited to 'app/server-control/controllers')
-rw-r--r-- | app/server-control/controllers/power-operations-controller.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/server-control/controllers/power-operations-controller.js b/app/server-control/controllers/power-operations-controller.js index 4ab765d..d38076f 100644 --- a/app/server-control/controllers/power-operations-controller.js +++ b/app/server-control/controllers/power-operations-controller.js @@ -117,7 +117,14 @@ window.angular && (function (angular) { }; $scope.immediateShutdown = function(){ - $scope.orderlyShutdown(); + //@TODO:show progress + APIUtils.chassisPowerOff(function(response){ + if(response){ + dataService.setPowerOffState(); + }else{ + //@TODO:hide progress & show error message + } + }); }; $scope.immediateShutdownConfirm = function(){ if($scope.confirm) { |