This is an automated email from the ASF dual-hosted git repository.

atkach pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 377308d  AMBARI-23086 Target host shows all the hosts available in 
Move Wizard
377308d is described below

commit 377308d4a772e2ca20aa7507ef40025d59546390
Author: Andrii Tkach <atk...@apache.org>
AuthorDate: Mon Feb 26 20:50:55 2018 +0200

    AMBARI-23086 Target host shows all the hosts available in Move Wizard
---
 .../app/controllers/main/service/reassign/step2_controller.js    | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git 
a/ambari-web/app/controllers/main/service/reassign/step2_controller.js 
b/ambari-web/app/controllers/main/service/reassign/step2_controller.js
index f40508c..828f967 100644
--- a/ambari-web/app/controllers/main/service/reassign/step2_controller.js
+++ b/ambari-web/app/controllers/main/service/reassign/step2_controller.js
@@ -47,6 +47,15 @@ App.ReassignMasterWizardStep2Controller = 
Em.Controller.extend(App.AssignMasterC
     return [];
   }.property('content.reassign.component_name', 
'servicesMastersToShow.length'),
 
+  renderComponents: function(masterComponents) {
+    this._super(masterComponents);
+    const currentMasterHost = this.get('content.reassign.host_id');
+    const currentServiceMaster = 
this.get('selectedServicesMasters').findProperty('selectedHost', 
currentMasterHost);
+    const freeHosts = this.get('hosts').rejectProperty('host_name', 
this.get('content.reassign.host_id'));
+    currentServiceMaster.set('selectedHost', 
freeHosts.mapProperty('host_name')[0]);
+    this.set('hosts', freeHosts);
+  },
+
   /**
    * Assignment is valid only if for one master component host was changed
    * @returns {boolean}

-- 
To stop receiving notification emails like this one, please contact
atk...@apache.org.

Reply via email to