Repository: ambari
Updated Branches:
  refs/heads/trunk 137e665a6 -> e383cf9f9


AMBARI-13937. Oozie and hive db hostname should be non-editable for new 
databases (onechiporenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e383cf9f
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e383cf9f
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e383cf9f

Branch: refs/heads/trunk
Commit: e383cf9f9a380ddf6e78ffeadaf9e25dae3b3793
Parents: 137e665
Author: Oleg Nechiporenko <onechipore...@apache.org>
Authored: Wed Nov 18 11:46:53 2015 +0200
Committer: Oleg Nechiporenko <onechipore...@apache.org>
Committed: Wed Nov 18 11:46:53 2015 +0200

----------------------------------------------------------------------
 ambari-web/app/views/common/controls_view.js | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e383cf9f/ambari-web/app/views/common/controls_view.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/controls_view.js 
b/ambari-web/app/views/common/controls_view.js
index 6052adf..09ad31f 100644
--- a/ambari-web/app/views/common/controls_view.js
+++ b/ambari-web/app/views/common/controls_view.js
@@ -431,6 +431,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
+    this.get('hostNameProperty').set('isEditable', !this.get('isNewDb'));
     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();

Reply via email to