You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2015/06/22 18:42:31 UTC

ambari git commit: AMBARI-12069 Save button in Manage Config Groups popup is enabled by default. (ababiichuk)

Repository: ambari
Updated Branches:
  refs/heads/trunk a2d31f524 -> 67f3ed342


AMBARI-12069 Save button in Manage Config Groups popup is enabled by default. (ababiichuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/67f3ed34
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/67f3ed34
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/67f3ed34

Branch: refs/heads/trunk
Commit: 67f3ed342c38ed6bc574882ec8231394098971b0
Parents: a2d31f5
Author: aBabiichuk <ab...@cybervisiontech.com>
Authored: Mon Jun 22 18:02:50 2015 +0300
Committer: aBabiichuk <ab...@cybervisiontech.com>
Committed: Mon Jun 22 19:42:08 2015 +0300

----------------------------------------------------------------------
 .../controllers/main/service/manage_config_groups_controller.js   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/67f3ed34/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/main/service/manage_config_groups_controller.js b/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
index cdc2c6b..e40d7f7 100644
--- a/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
+++ b/ambari-web/app/controllers/main/service/manage_config_groups_controller.js
@@ -182,9 +182,10 @@ App.ManageConfigGroupsController = Em.Controller.extend(App.ConfigOverridable, {
     if (!this.get('isLoaded')) {
       return false;
     }
+    var ignoreKeys = ['initialGroups'];
     var modifiedGroups = this.get('hostsModifiedConfigGroups');
     return Em.keys(modifiedGroups).map(function (key) {
-      return Em.get(modifiedGroups[key], 'length');
+      return ignoreKeys.contains(key) ? 0 : Em.get(modifiedGroups[key], 'length');
     }).reduce(Em.sum) > 0;
   }.property('hostsModifiedConfigGroups'),