Browse Source

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

aBabiichuk 10 years ago
parent
commit
b737df41bf
1 changed files with 7 additions and 1 deletions
  1. 7 1
      ambari-web/app/views/common/controls_view.js

+ 7 - 1
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"');
+      }
+    }
   }
 });