소스 검색

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 년 전
부모
커밋
6f6c38310e
2개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      ambari-web/app/views/common/assign_master_components_view.js
  2. 2 0
      ambari-web/test/views/wizard/step5_view_test.js

+ 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();
     });