Updated Branches: refs/heads/trunk 679c6ee23 -> 66b1c1d56
AMBARI-3945. Custom hdfs-site.xml section disappears in HDFS Config page. (srimanth) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/66b1c1d5 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/66b1c1d5 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/66b1c1d5 Branch: refs/heads/trunk Commit: 66b1c1d5674b410376f590351246f9371df9cd64 Parents: 679c6ee Author: Srimanth Gunturi <[email protected]> Authored: Mon Dec 2 12:10:51 2013 -0800 Committer: Srimanth Gunturi <[email protected]> Committed: Mon Dec 2 12:10:51 2013 -0800 ---------------------------------------------------------------------- ambari-web/app/views/common/configs/services_config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/66b1c1d5/ambari-web/app/views/common/configs/services_config.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/views/common/configs/services_config.js b/ambari-web/app/views/common/configs/services_config.js index 27713ae..0778a00 100644 --- a/ambari-web/app/views/common/configs/services_config.js +++ b/ambari-web/app/views/common/configs/services_config.js @@ -66,9 +66,9 @@ App.ServiceConfigView = Em.View.extend({ */ checkCanEdit: function () { var controller = App.get('router.'+this.get('controller.name')); - var canAddProperty = false; - if(controller.get('selectedConfigGroup').isDefault){ - canAddProperty = true; + var canAddProperty = true; + if(controller.get('selectedConfigGroup') && !controller.get('selectedConfigGroup').isDefault){ + canAddProperty = false; } this.get('controller.selectedService.configCategories').filterProperty('siteFileName').forEach(function (config) { config.set('canAddProperty', canAddProperty);
