You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ak...@apache.org on 2017/01/23 20:32:15 UTC
[3/4] ambari git commit: AMBARI-18790. Implement lazy loading for
Service configs Advanced tab. Third patch. (akovalenko)
AMBARI-18790. Implement lazy loading for Service configs Advanced tab. Third patch. (akovalenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4ba00325
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4ba00325
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4ba00325
Branch: refs/heads/branch-2.5
Commit: 4ba003257de9d5c89de3d503028a32210c43019f
Parents: bb9859d
Author: Aleksandr Kovalenko <ak...@hortonworks.com>
Authored: Mon Jan 23 22:27:27 2017 +0200
Committer: Aleksandr Kovalenko <ak...@hortonworks.com>
Committed: Mon Jan 23 22:27:27 2017 +0200
----------------------------------------------------------------------
.../app/views/common/configs/service_configs_by_category_view.js | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/4ba00325/ambari-web/app/views/common/configs/service_configs_by_category_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/configs/service_configs_by_category_view.js b/ambari-web/app/views/common/configs/service_configs_by_category_view.js
index d7c1f4d..7a5bcbe 100644
--- a/ambari-web/app/views/common/configs/service_configs_by_category_view.js
+++ b/ambari-web/app/views/common/configs/service_configs_by_category_view.js
@@ -78,6 +78,9 @@ App.ServiceConfigsByCategoryView = Em.View.extend(App.UserPref, App.ConfigOverri
// If `this.categoryConfigsAll` is a computed property then don't set it.
// some extended class like `App.NotificationsConfigsView` overrides `categoryConfigsAll` as computed property
Em.run.next(function () {
+ if (self.get('state') !== 'inDOM') {
+ return;
+ }
if ($.isArray(self.categoryConfigsAll)) {
self.setCategoryConfigsAll();
}