浏览代码

AMBARI-13031 Config tab for Ranger updates incorrectly. (ababiichuk)

aBabiichuk 10 年之前
父节点
当前提交
9acb26f275
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ambari-web/app/views/common/controls_view.js

+ 2 - 2
ambari-web/app/views/common/controls_view.js

@@ -426,7 +426,7 @@ App.ServiceConfigRadioButtons = Ember.View.extend(App.ServiceConfigCalculateId,
   didInsertElement: function () {
     // on page render, automatically populate JDBC URLs only for default database settings
     // so as to not lose the user's customizations on these fields
-    //if (['addServiceController', 'installerController'].contains(this.get('controller.wizardController.name'))) {
+    if (['addServiceController', 'installerController'].contains(this.get('controller.wizardController.name')) && !App.StackService.find(this.get('serviceConfig.serviceName')).get('isInstalled')) {
       if (this.get('isNewDb') || this.get('dontUseHandleDbConnection').contains(this.get('serviceConfig.name'))) {
         this.onOptionsChange();
       } else {
@@ -435,7 +435,7 @@ App.ServiceConfigRadioButtons = Ember.View.extend(App.ServiceConfigCalculateId,
         }
         this.handleDBConnectionProperty();
       }
-    //}
+    }
   },
 
   /**