You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by on...@apache.org on 2014/07/23 11:37:55 UTC

git commit: AMBARI-6570. Fast user can skip "Customize Services" step (add service wizard) while configs are not loaded. (onechiporenko)

Repository: ambari
Updated Branches:
  refs/heads/trunk 256121dfe -> 415fac0de


AMBARI-6570. Fast user can skip "Customize Services" step (add service wizard) while configs are not loaded. (onechiporenko)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/415fac0d
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/415fac0d
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/415fac0d

Branch: refs/heads/trunk
Commit: 415fac0de7251b36b52e30a74c2a2160c4ff5bc9
Parents: 256121d
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Wed Jul 23 12:33:51 2014 +0300
Committer: Oleg Nechiporenko <on...@apache.org>
Committed: Wed Jul 23 12:33:51 2014 +0300

----------------------------------------------------------------------
 ambari-web/app/controllers/wizard/step7_controller.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/415fac0d/ambari-web/app/controllers/wizard/step7_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step7_controller.js b/ambari-web/app/controllers/wizard/step7_controller.js
index 41ea574..822c014 100644
--- a/ambari-web/app/controllers/wizard/step7_controller.js
+++ b/ambari-web/app/controllers/wizard/step7_controller.js
@@ -118,7 +118,8 @@ App.WizardStep7Controller = Em.Controller.extend({
    * @type {bool}
    */
   isSubmitDisabled: function () {
-    return (!this.stepConfigs.filterProperty('showConfig', true).everyProperty('errorCount', 0) || this.get("miscModalVisible"));
+    if (!this.get('stepConfigs.length')) return true;
+    return (!this.get('stepConfigs').filterProperty('showConfig', true).everyProperty('errorCount', 0) || this.get("miscModalVisible"));
   }.property('stepConfigs.@each.errorCount', 'miscModalVisible'),
 
   /**