Преглед на файлове

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