浏览代码

AMBARI-6728. RM HA wizard should not list all masters, just current + add'l RM. (akovalenko)

Aleksandr Kovalenko 10 年之前
父节点
当前提交
de4aab95ad

+ 3 - 3
ambari-web/app/controllers/main/admin/highAvailability/resourceManager/step2_controller.js

@@ -21,9 +21,9 @@ var App = require('app');
 App.RMHighAvailabilityWizardStep2Controller = App.WizardStep5Controller.extend({
   name: "rMHighAvailabilityWizardStep2Controller",
 
-  loadStep: function () {
-    this._super();
-    this.hideUnusedComponents();
+  loadStepCallback: function (components, self) {
+    this._super(components, self);
+    self.hideUnusedComponents();
   },
 
   renderComponents: function (masterComponents) {

+ 6 - 6
ambari-web/app/controllers/wizard/step5_controller.js

@@ -306,7 +306,7 @@ App.WizardStep5Controller = Em.Controller.extend({
     if (App.router.get('installerController.recommendations') !== undefined) {
       // Don't do AJAX call if recommendations has been already received
       // But if user returns to previous step (selecting services), stored recommendations will be cleared in routers' next handler and AJAX call will be made again
-      callback(self.createComponentInstalltationObjects(), self);
+      callback(self.createComponentInstallationObjects(), self);
     } else {
       var selectedServices = App.StackService.find().filterProperty('isSelected').mapProperty('serviceName');
       var installedServices = App.StackService.find().filterProperty('isInstalled').mapProperty('serviceName');
@@ -329,7 +329,7 @@ App.WizardStep5Controller = Em.Controller.extend({
           timeout: App.timeout
         }).
         then(function () {
-          callback(self.createComponentInstalltationObjects(), self);
+          callback(self.createComponentInstallationObjects(), self);
         },
         function () {
           App.showReloadPopup();
@@ -344,7 +344,7 @@ App.WizardStep5Controller = Em.Controller.extend({
    * expects installerController.recommendations will be filled with recommendations API call result
    * @return {Object[]}
    */
-  createComponentInstalltationObjects: function() {
+  createComponentInstallationObjects: function() {
     var self = this;
 
     var masterComponents = [];
@@ -386,12 +386,12 @@ App.WizardStep5Controller = Em.Controller.extend({
                   multipleComponentHasBeenAdded[component.name] = true;
 
                   savedComponents.forEach(function(saved) {
-                    resultComponents.push(self.createComponentInstalltationObject(fullComponent, host.fqdn, saved));
+                    resultComponents.push(self.createComponentInstallationObject(fullComponent, host.fqdn, saved));
                   });
                 }
               } else {
                 var savedComponent = masterHosts.findProperty('component', component.name);
-                resultComponents.push(self.createComponentInstalltationObject(fullComponent, host.fqdn, savedComponent));
+                resultComponents.push(self.createComponentInstallationObject(fullComponent, host.fqdn, savedComponent));
               }
             }
           }
@@ -408,7 +408,7 @@ App.WizardStep5Controller = Em.Controller.extend({
    * @param savedComponent - the same object which function returns but created before
    * @return {Object}
    */
-  createComponentInstalltationObject: function(fullComponent, hostName, savedComponent) {
+  createComponentInstallationObject: function(fullComponent, hostName, savedComponent) {
     var componentName = fullComponent.get('componentName');
 
     var componentObj = {};