ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexantone...@apache.org
Subject [3/7] ambari git commit: AMBARI-11074. UI - Removing config group overrides and saving doesn't save changes as they are still pending in UI (alexantonenko)
Date Tue, 12 May 2015 20:49:20 GMT
AMBARI-11074. UI - Removing config group overrides and saving doesn't save changes as they
are still pending in UI (alexantonenko)


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

Branch: refs/heads/trunk
Commit: 17f4eca6daccdc5b5963f15cb0811a6d11fceca6
Parents: 7ccaca9
Author: Alex Antonenko <hiveww@gmail.com>
Authored: Tue May 12 20:19:11 2015 +0300
Committer: Alex Antonenko <hiveww@gmail.com>
Committed: Tue May 12 23:48:37 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/mixins/common/configs/configs_saver.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/17f4eca6/ambari-web/app/mixins/common/configs/configs_saver.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mixins/common/configs/configs_saver.js b/ambari-web/app/mixins/common/configs/configs_saver.js
index 01d9997..816af7a 100644
--- a/ambari-web/app/mixins/common/configs/configs_saver.js
+++ b/ambari-web/app/mixins/common/configs/configs_saver.js
@@ -120,7 +120,7 @@ App.ConfigsSaverMixin = Em.Mixin.create({
 
           var overridenConfigs = this.getConfigsForGroup(configs, configGroup.get('name'));
 
-          if (Em.isArray(overridenConfigs) && overridenConfigs.length) {
+          if (Em.isArray(overridenConfigs)) {
             this.saveGroup(overridenConfigs, configGroup, this.get('content.serviceName')
=== serviceName);
           }
         }
@@ -1250,4 +1250,4 @@ App.ConfigsSaverMixin = Em.Mixin.create({
         return value;
     }
   }
-});
\ No newline at end of file
+});


Mime
View raw message