You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2018/09/12 13:05:53 UTC

[ambari] branch branch-2.7 updated: AMBARI-24620 Duplicate view of configurations in Add Service wizard

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

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


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new 92827f0  AMBARI-24620 Duplicate view of configurations in Add Service wizard
92827f0 is described below

commit 92827f0042d9c874d762412023489ca1d6166f36
Author: Andrii Tkach <at...@apache.org>
AuthorDate: Wed Sep 12 11:50:48 2018 +0300

    AMBARI-24620 Duplicate view of configurations in Add Service wizard
---
 ambari-web/app/views/common/configs/service_config_container_view.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ambari-web/app/views/common/configs/service_config_container_view.js b/ambari-web/app/views/common/configs/service_config_container_view.js
index 3b4bf63..0e20bfe 100644
--- a/ambari-web/app/views/common/configs/service_config_container_view.js
+++ b/ambari-web/app/views/common/configs/service_config_container_view.js
@@ -25,6 +25,8 @@ App.ServiceConfigContainerView = Em.ContainerView.extend({
   view: null,
 
   lazyLoading: null,
+  
+  pushViewTimeout: null,
 
   didInsertElement: function () {
     if (this.get('controller.isInstallWizard')) {
@@ -112,7 +114,8 @@ App.ServiceConfigContainerView = Em.ContainerView.extend({
     if (this.get('controller.isRecommendedLoaded')) {
       this.pushView();
     } else {
-      Em.run.later(this.pushViewAfterRecommendation.bind(this), 300);
+      clearTimeout(this.get('pushViewTimeout'));
+      this.set('pushViewTimeout', setTimeout(() => this.pushViewAfterRecommendation(), 300));
     }
   }