You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ab...@apache.org on 2015/08/05 13:21:03 UTC

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

Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 f806f0010 -> 9798b2265


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/9798b226
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9798b226
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9798b226

Branch: refs/heads/branch-2.1
Commit: 9798b2265d714466beb3de441609184c000f71bf
Parents: f806f00
Author: aBabiichuk <ab...@cybervisiontech.com>
Authored: Wed Aug 5 14:18:59 2015 +0300
Committer: aBabiichuk <ab...@cybervisiontech.com>
Committed: Wed Aug 5 14:20:25 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/9798b226/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 a0759d7..b0c6cf4 100644
--- a/ambari-web/app/views/common/controls_view.js
+++ b/ambari-web/app/views/common/controls_view.js
@@ -922,7 +922,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"');
+      }
+    }
   }
 });