ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nc...@apache.org
Subject [42/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:38 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/7031576d
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/7031576d
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/7031576d

Branch: refs/heads/branch-dev-patch-upgrade
Commit: 7031576d252e27c268b5b873f57452350d08251c
Parents: 8769f41
Author: Oleg Nechiporenko <onechiporenko@apache.org>
Authored: Wed Nov 18 16:39:06 2015 +0200
Committer: Oleg Nechiporenko <onechiporenko@apache.org>
Committed: Wed Nov 18 16:41:07 2015 +0200

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/7031576d/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 93acafa..9362dfe 100644
--- a/ambari-web/app/views/common/controls_view.js
+++ b/ambari-web/app/views/common/controls_view.js
@@ -431,7 +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
-    this.get('hostNameProperty').set('isEditable', !this.get('isNewDb'));
+    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();


Mime
View raw message