AMBARI-6989. Check db connection button call action in disabled state (Buzhor Denys via alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/f69618fd Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f69618fd Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f69618fd Branch: refs/heads/branch-alerts-dev Commit: f69618fdf31113f4c228ed57ae9be44c636e82a0 Parents: f2d91b2 Author: Alex Antonenko <hiv...@gmail.com> Authored: Fri Aug 22 17:19:55 2014 +0300 Committer: Alex Antonenko <hiv...@gmail.com> Committed: Fri Aug 22 17:20:33 2014 +0300 ---------------------------------------------------------------------- ambari-web/app/views/wizard/controls_view.js | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/f69618fd/ambari-web/app/views/wizard/controls_view.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/views/wizard/controls_view.js b/ambari-web/app/views/wizard/controls_view.js index d112c40..f42639d 100644 --- a/ambari-web/app/views/wizard/controls_view.js +++ b/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', {});