瀏覽代碼

AMBARI-3528. DB url isn't calculated automatically. (onechiporenko)

Oleg Nechiporenko 11 年之前
父節點
當前提交
8f2b1fe4c6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ambari-web/app/views/wizard/controls_view.js

+ 1 - 1
ambari-web/app/views/wizard/controls_view.js

@@ -201,7 +201,7 @@ App.ServiceConfigRadioButtons = Ember.View.extend({
   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 (App.clusterStatus.clusterState == 'CLUSTER_NOT_CREATED_1' && ['New MySQL Database', 'New Derby Database'].contains(this.get('serviceConfig.value'))) {
+    if (['addServiceController', 'installerController'].contains(App.clusterStatus.wizardControllerName) && ['New MySQL Database', 'New Derby Database'].contains(this.get('serviceConfig.value'))) {
       this.onOptionsChange();
     }
   },