ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [03/22] ambari git commit: AMBARI-18790. Implement lazy loading for Service configs Advanced tab. Third patch. (akovalenko)
Date Tue, 08 Nov 2016 20:25:11 GMT
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/f87ec899
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f87ec899
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f87ec899

Branch: refs/heads/branch-feature-AMBARI-18634
Commit: f87ec899c3f7f55f6d4f133b2034ca125eec4b97
Parents: 5da18ae
Author: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Authored: Mon Nov 7 17:17:43 2016 +0200
Committer: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Committed: Mon Nov 7 17:52:33 2016 +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/f87ec899/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 4b2739b..ac59386 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();
       }


Mime
View raw message