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 6b5853b  AMBARI-23050 Hosts selection not shown while adding Zookeeper 
server
6b5853b is described below

commit 6b5853bef11d575400e6a05d5f517291c5776481
Author: Andrii Tkach <atk...@apache.org>
AuthorDate: Thu Feb 22 14:22:59 2018 +0200

    AMBARI-23050 Hosts selection not shown while adding Zookeeper server
---
 ambari-web/app/controllers/main/host/details.js                       | 4 ++++
 .../app/templates/main/host/details/addDeleteComponentPopup.hbs       | 2 +-
 .../app/views/common/modal_popups/dependent_configs_list_popup.js     | 4 +++-
 3 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ambari-web/app/controllers/main/host/details.js 
b/ambari-web/app/controllers/main/host/details.js
index 774d897..69b9bfe 100644
--- a/ambari-web/app/controllers/main/host/details.js
+++ b/ambari-web/app/controllers/main/host/details.js
@@ -841,8 +841,12 @@ App.MainHostDetailsController = 
Em.Controller.extend(App.SupportClientConfigsDow
             if (componentsMapItem.hostPropertyName) {
               self.set(componentsMapItem.hostPropertyName, hostName);
             }
+            if (componentsMapItem.addPropertyName) {
+              self.set(componentsMapItem.addPropertyName, true);
+            }
             if (configs) {
               self.clearConfigsChanges(true);
+              self.set('isReconfigureRequired', true);
               self.set('isConfigsLoadingInProgress', true);
               self[componentsMapItem.configsCallbackName](configs, null, 
params);
             } else {
diff --git 
a/ambari-web/app/templates/main/host/details/addDeleteComponentPopup.hbs 
b/ambari-web/app/templates/main/host/details/addDeleteComponentPopup.hbs
index d8a0ad7..cafa1e1 100644
--- a/ambari-web/app/templates/main/host/details/addDeleteComponentPopup.hbs
+++ b/ambari-web/app/templates/main/host/details/addDeleteComponentPopup.hbs
@@ -25,7 +25,7 @@
   </div>
 {{/if}}
 {{#if view.anyHostsWithoutComponent}}
-  {{#if view.hasHostsSelect}}
+  {{#if view.fromServiceSummary}}
     <div>{{view.selectHostMsg}}</div>
     <div class="row">
       <div class="col-md-12">
diff --git 
a/ambari-web/app/views/common/modal_popups/dependent_configs_list_popup.js 
b/ambari-web/app/views/common/modal_popups/dependent_configs_list_popup.js
index 828a68e..7f0c581 100644
--- a/ambari-web/app/views/common/modal_popups/dependent_configs_list_popup.js
+++ b/ambari-web/app/views/common/modal_popups/dependent_configs_list_popup.js
@@ -77,7 +77,9 @@ App.DependentConfigsListView = Em.View.extend({
     }
   }),
   setAllConfigsWithErrors: function () {
-    if (this.get('state') === 'inBuffer') return [];
+    if (this.get('state') === 'inBuffer' || 
Em.isNone(this.get('controller.stepConfigs'))) {
+      return;
+    }
     this.set('allConfigsWithErrors', 
this.get('controller.stepConfigs').reduce(function (result, stepConfig) {
       if (stepConfig.get('configsWithErrors.length')) {
         result = result.concat(stepConfig.get('configsWithErrors'));

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

Reply via email to