|
@@ -793,6 +793,9 @@ App.MainHostDetailsController = Em.Controller.extend({
|
|
|
case "stopAllComponents":
|
|
|
this.doStopAllComponents();
|
|
|
break;
|
|
|
+ case "restartAllComponents":
|
|
|
+ this.doRestartAllComponents();
|
|
|
+ break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
@@ -822,6 +825,17 @@ App.MainHostDetailsController = Em.Controller.extend({
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+ doRestartAllComponents: function() {
|
|
|
+ var self = this;
|
|
|
+ var components = this.get('content.hostComponents');
|
|
|
+ var componentsLength = components == null ? 0 : components.get('length');
|
|
|
+ if (componentsLength > 0) {
|
|
|
+ App.showConfirmationPopup(function() {
|
|
|
+ batchUtils.restartHostComponents(components);
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
/**
|
|
|
* Deletion of hosts not supported for this version
|
|
|
*/
|