Quellcode durchsuchen

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

Srimanth Gunturi vor 11 Jahren
Ursprung
Commit
66b1c1d567
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  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 () {
   checkCanEdit: function () {
     var controller = App.get('router.'+this.get('controller.name'));
     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) {
     this.get('controller.selectedService.configCategories').filterProperty('siteFileName').forEach(function (config) {
       config.set('canAddProperty', canAddProperty);
       config.set('canAddProperty', canAddProperty);