Explorar o código

AMBARI-11062 On Assign Masters page - components are not correctly assigned to nodes in combo box on right side according to components and respective nodes selected in drop down boxes on left. (ababiichuk)

aBabiichuk %!s(int64=10) %!d(string=hai) anos
pai
achega
6f6c38310e

+ 1 - 0
ambari-web/app/views/common/assign_master_components_view.js

@@ -141,6 +141,7 @@ App.SelectHostView = Em.Select.extend(App.SelectHost, {
    * @method change
    */
   change: function () {
+    this._super();
     this.initContent();
   }
 

+ 2 - 0
ambari-web/test/views/wizard/step5_view_test.js

@@ -66,11 +66,13 @@ describe('App.SelectHostView', function() {
 
     beforeEach(function() {
       sinon.stub(view, 'initContent', Em.K);
+      sinon.stub(view, 'changeHandler', Em.K);
       models.setupStackServiceComponent();
     });
 
     afterEach(function() {
       view.initContent.restore();
+      view.changeHandler.restore();
       models.cleanStackServiceComponent();
     });