You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2014/08/22 16:22:02 UTC

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

Repository: ambari
Updated Branches:
  refs/heads/trunk f2d91b20f -> f69618fdf


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/trunk
Commit: f69618fdf31113f4c228ed57ae9be44c636e82a0
Parents: f2d91b2
Author: Alex Antonenko <hi...@gmail.com>
Authored: Fri Aug 22 17:19:55 2014 +0300
Committer: Alex Antonenko <hi...@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', {});