소스 검색

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

aBabiichuk 10 년 전
부모
커밋
b737df41bf
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  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"');
+      }
+    }
   }
 });