ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject ambari git commit: AMBARI-16016 Properly handle 'properties' in Manage Config Group popup. (ababiichuk)
Date Fri, 22 Apr 2016 13:32:55 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 5db6f1d21 -> 5d92271a6


AMBARI-16016 Properly handle 'properties' in Manage Config Group popup. (ababiichuk)


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

Branch: refs/heads/trunk
Commit: 5d92271a63a247ca98a0903ff1e0d734c9060d3d
Parents: 5db6f1d
Author: ababiichuk <ababiichuk@hortonworks.com>
Authored: Thu Apr 21 19:12:51 2016 +0300
Committer: ababiichuk <ababiichuk@hortonworks.com>
Committed: Fri Apr 22 16:25:50 2016 +0300

----------------------------------------------------------------------
 .../configs/objects/service_config_property.js       | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5d92271a/ambari-web/app/models/configs/objects/service_config_property.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/models/configs/objects/service_config_property.js b/ambari-web/app/models/configs/objects/service_config_property.js
index 80258ef..8e6327b 100644
--- a/ambari-web/app/models/configs/objects/service_config_property.js
+++ b/ambari-web/app/models/configs/objects/service_config_property.js
@@ -269,6 +269,21 @@ App.ServiceConfigProperty = Em.Object.extend({
   },
 
   /**
+   * updates configs list that belongs to config group
+   */
+  updateGroupConfigs: function() {
+    if (this.get('group')) {
+      var o = this.get('group.properties').find(function(c) {
+        return Em.get(c, 'name') === this.get('name') && Em.get(c, 'filename') ===
this.get('filename');
+      }, this);
+
+      if (o) {
+        Em.set(o, 'value', this.get('value'));
+      }
+    }
+  }.observes('value'),
+
+  /**
    * Indicates when value is not the default value.
    * Returns false when there is no default value.
    *


Mime
View raw message