Bladeren bron

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

Oleg Nechiporenko 10 jaren geleden
bovenliggende
commit
415fac0de7
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  1. 2 1
      ambari-web/app/controllers/wizard/step7_controller.js

+ 2 - 1
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'),
 
   /**