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 218f99d AMBARI-24620 Duplicate view of configurations in Add Service
wizard
218f99d is described below
commit 218f99d44f5209b93c5150ff81c99f11e7b750b7
Author: Andrii Tkach <[email protected]>
AuthorDate: Wed Sep 12 11:46:57 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));
}
}