Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 bfda37e22 -> 810a9e00f


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/810a9e00
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/810a9e00
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/810a9e00

Branch: refs/heads/branch-2.1
Commit: 810a9e00fc9f90dc1c879ee2ff3247b0552eeae2
Parents: bfda37e
Author: aBabiichuk <[email protected]>
Authored: Mon Jun 22 19:42:08 2015 +0300
Committer: aBabiichuk <[email protected]>
Committed: Mon Jun 22 19:43:38 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/810a9e00/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'),
 

Reply via email to