Prechádzať zdrojové kódy

AMBARI-15730. Kerberos "Test Connection" button should not be shown on the host configs page (onechiporenko)

Oleg Nechiporenko 9 rokov pred
rodič
commit
7b67232361

+ 3 - 0
ambari-web/app/views/common/controls_view.js

@@ -848,6 +848,9 @@ App.ServiceConfigMasterHostView = Ember.View.extend(App.ServiceConfigHostPopover
 App.checkConnectionView = App.ServiceConfigTextField.extend({
   didInsertElement: function() {
     this._super();
+    if (this.get('controller.isHostsConfigsPage')) {
+      return;
+    }
     var kdc = this.get('categoryConfigsAll').findProperty('name', 'kdc_type');
     var propertyAppendTo = this.get('categoryConfigsAll').findProperty('name', 'domains');
     if (propertyAppendTo) {