summaryrefslogtreecommitdiffstats
path: root/app/configuration/controllers/firmware-controller.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/configuration/controllers/firmware-controller.js')
-rw-r--r--app/configuration/controllers/firmware-controller.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/configuration/controllers/firmware-controller.js b/app/configuration/controllers/firmware-controller.js
index 8fe0e83..127a7c2 100644
--- a/app/configuration/controllers/firmware-controller.js
+++ b/app/configuration/controllers/firmware-controller.js
@@ -48,6 +48,7 @@ window.angular && (function (angular) {
$scope.confirm_priority = false;
$scope.file_empty = true;
$scope.uploading = false;
+ $scope.activate = { reboot: true };
var pollActivationTimer = undefined;
@@ -119,6 +120,17 @@ window.angular && (function (angular) {
desc: JSON.stringify(error.data),
type: 'Error'
});
+ }).then(function(state){
+ if($scope.activate.reboot){
+ APIUtils.bmcReboot(function(response){}, function(error){
+ $scope.displayError({
+ modal_title: 'Error during BMC reboot',
+ title: 'Error during BMC reboot',
+ desc: JSON.stringify(error.data),
+ type: 'Error'
+ });
+ });
+ }
});
});
$scope.activate_confirm = false;
OpenPOWER on IntegriCloud