Ver código fonte

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

Oleg Nechiporenko 9 anos atrás
pai
commit
7b67232361
1 arquivos alterados com 3 adições e 0 exclusões
  1. 3 0
      ambari-web/app/views/common/controls_view.js

+ 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) {