Browse Source

AMBARI-6989. Check db connection button call action in disabled state (Buzhor Denys via alexantonenko)

Alex Antonenko 10 năm trước cách đây
mục cha
commit
f69618fdf3
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      ambari-web/app/views/wizard/controls_view.js

+ 1 - 0
ambari-web/app/views/wizard/controls_view.js

@@ -883,6 +883,7 @@ App.CheckDBConnectionView = Ember.View.extend({
    * @method connectToDatabase
    **/
   connectToDatabase: function() {
+    if (this.get('isBtnDisabled')) return false;
     var self = this;
     self.set('isRequestResolved', false);
     App.db.set('tmp', this.get('parentView.service.serviceName') + '_connection', {});