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-14180 Recommendation poup: Non Existing properties does not retain their initial value in "current value" column. (ababiichuk)
Date Thu, 03 Dec 2015 11:45:20 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 6019649ec -> 3711b365c


AMBARI-14180 Recommendation poup: Non Existing properties does not retain their initial value
in "current value" column. (ababiichuk)


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

Branch: refs/heads/trunk
Commit: 3711b365c23f78984a519cbd517aada4a965a64f
Parents: 6019649
Author: aBabiichuk <ababiichuk@cybervisiontech.com>
Authored: Thu Dec 3 13:42:47 2015 +0200
Committer: aBabiichuk <ababiichuk@cybervisiontech.com>
Committed: Thu Dec 3 13:45:11 2015 +0200

----------------------------------------------------------------------
 ambari-web/app/mixins/common/configs/enhanced_configs.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/3711b365/ambari-web/app/mixins/common/configs/enhanced_configs.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/mixins/common/configs/enhanced_configs.js b/ambari-web/app/mixins/common/configs/enhanced_configs.js
index ba51233..678ce87 100644
--- a/ambari-web/app/mixins/common/configs/enhanced_configs.js
+++ b/ambari-web/app/mixins/common/configs/enhanced_configs.js
@@ -696,6 +696,9 @@ App.EnhancedConfigsMixin = Em.Mixin.create({
             isNotSaved: !Em.get(propertyToAdd, 'isDeleted'),
             isRequired: stackProperty && stackProperty.isRequired !== false
           });
+          if (!Em.get(propertyToAdd, 'isDeleted')) {
+            addedProperty.set('initialValue', null);
+          }
           stepConfigs.get('configs').pushObject(addedProperty);
           addedProperty.validate();
         } else {


Mime
View raw message