You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ja...@apache.org on 2015/11/18 23:32:49 UTC

ambari git commit: AMBARI-13937. Oozie and hive db hostname should be non-editable for new databases. (Oleg via Jaimin)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 f4fa15fef -> e10afc37f


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


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

Branch: refs/heads/branch-2.1
Commit: e10afc37fe0757a785ae7e7ae4c037278267dbb1
Parents: f4fa15f
Author: Jaimin Jetly <ja...@hortonworks.com>
Authored: Wed Nov 18 14:32:21 2015 -0800
Committer: Jaimin Jetly <ja...@hortonworks.com>
Committed: Wed Nov 18 14:32:30 2015 -0800

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/e10afc37/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 6d5a49d..14bfa5a 100644
--- a/ambari-web/app/views/common/controls_view.js
+++ b/ambari-web/app/views/common/controls_view.js
@@ -431,6 +431,9 @@ 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 (this.get('hostNameProperty')) {
+       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();