Browse Source

AMBARI-6525 Unable to install cluster after coming back to step 1 and selecting different stack version. (Max Shepel via ababiichuk)

aBabiichuk 11 years ago
parent
commit
ef23fba3f6

+ 2 - 2
ambari-web/app/controllers/wizard/step7_controller.js

@@ -127,7 +127,7 @@ App.WizardStep7Controller = Em.Controller.extend({
    */
   selectedServiceNames: function () {
     return this.get('content.services').filterProperty('isSelected', true).filterProperty('isInstalled', false).mapProperty('serviceName');
-  }.property('content.services').cacheable(),
+  }.property('content.services', 'content.stacks.@each.isSelected').cacheable(),
 
   /**
    * List of installed and selected to install service names
@@ -137,7 +137,7 @@ App.WizardStep7Controller = Em.Controller.extend({
     return this.get('content.services').filter(function (service) {
       return service.get('isInstalled') || service.get('isSelected');
     }).mapProperty('serviceName');
-  }.property('content.services').cacheable(),
+  }.property('content.services', 'content.stacks.@each.isSelected').cacheable(),
 
   /**
    * List of installed service names

+ 1 - 0
ambari-web/app/mappers/stack_service_mapper.js

@@ -75,6 +75,7 @@ App.stackServiceMapper = App.QuickDataMapper.create({
         result.push(this.parseIt(stackService, this.get('config')));
       }
     }, this);
+    App.store.commit();
     App.store.loadMany(this.get('component_model'), stackServiceComponents);
     App.store.loadMany(model, result);
   },