ソースを参照

AMBARI-3945. Custom hdfs-site.xml section disappears in HDFS Config page. (srimanth)

Srimanth Gunturi 11 年 前
コミット
66b1c1d567
1 ファイル変更3 行追加3 行削除
  1. 3 3
      ambari-web/app/views/common/configs/services_config.js

+ 3 - 3
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);