فهرست منبع

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

Oleg Nechiporenko 11 سال پیش
والد
کامیت
415fac0de7
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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'),
 
   /**