ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ababiic...@apache.org
Subject ambari git commit: AMBARI-12644 Kerberos wizard: Configure Kerberos page does not show Test KDC connection button. (ababiichuk)
Date Wed, 05 Aug 2015 11:21:21 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk 26a3efd75 -> b737df41b


AMBARI-12644 Kerberos wizard: Configure Kerberos page does not show Test KDC connection button.
(ababiichuk)


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

Branch: refs/heads/trunk
Commit: b737df41bfaeb63b1fcb450331f81aa784cb6cdc
Parents: 26a3efd
Author: aBabiichuk <ababiichuk@cybervisiontech.com>
Authored: Wed Aug 5 14:18:59 2015 +0300
Committer: aBabiichuk <ababiichuk@cybervisiontech.com>
Committed: Wed Aug 5 14:18:59 2015 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/b737df41/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 b159e34..3a42ae8 100644
--- a/ambari-web/app/views/common/controls_view.js
+++ b/ambari-web/app/views/common/controls_view.js
@@ -923,7 +923,13 @@ App.checkConnectionView = App.ServiceConfigTextField.extend({
     this._super();
     var kdc = this.get('categoryConfigsAll').findProperty('name', 'kdc_type');
     var propertyAppendTo = this.get('categoryConfigsAll').findProperty('name', 'domains');
-    if (propertyAppendTo && propertyAppendTo.get('state') === 'inDOM') propertyAppendTo.set('additionalView',
App.CheckDBConnectionView.extend({databaseName: kdc && kdc.get('value')}));
+    if (propertyAppendTo) {
+      try {
+        propertyAppendTo.set('additionalView', App.CheckDBConnectionView.extend({databaseName:
kdc && kdc.get('value')}));
+      } catch (e) {
+        console.error('error while adding "Test connection button"');
+      }
+    }
   }
 });
 


Mime
View raw message