Selaa lähdekoodia

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 10 vuotta sitten
vanhempi
commit
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();
     });