ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [34/50] [abbrv] ambari git commit: AMBARI-13937. Oozie and hive db hostname should be non-editable for new databases (onechiporenko)
Date Wed, 18 Nov 2015 16:51:30 GMT
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/branch-dev-patch-upgrade
Commit: e383cf9f9a380ddf6e78ffeadaf9e25dae3b3793
Parents: 137e665
Author: Oleg Nechiporenko <onechiporenko@apache.org>
Authored: Wed Nov 18 11:46:53 2015 +0200
Committer: Oleg Nechiporenko <onechiporenko@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();


Mime
View raw message