Quellcode durchsuchen

AMBARI-11649. Install Wizard, Step6: Next button is not working after closing warning popup (akovalenko)

Aleksandr Kovalenko vor 10 Jahren
Ursprung
Commit
e06e19c8f8
1 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 6 6
      ambari-web/app/routes/installer.js

+ 6 - 6
ambari-web/app/routes/installer.js

@@ -273,10 +273,10 @@ module.exports = Em.Route.extend(App.RouterRedirections, {
       var controller = router.get('installerController');
       var wizardStep6Controller = router.get('wizardStep6Controller');
       var wizardStep7Controller = router.get('wizardStep7Controller');
-      if(!router.transitionInProgress) {
-        router.set('transitionInProgress', true);
-        if (!wizardStep6Controller.get('submitDisabled')) {
-          wizardStep6Controller.showValidationIssuesAcceptBox(function () {
+      if (!wizardStep6Controller.get('submitDisabled')) {
+        wizardStep6Controller.showValidationIssuesAcceptBox(function () {
+          if (!router.transitionInProgress) {
+            router.set('transitionInProgress', true);
             controller.saveSlaveComponentHosts(wizardStep6Controller);
             controller.get('content').set('serviceConfigProperties', null);
             controller.setDBProperty('serviceConfigProperties', null);
@@ -287,8 +287,8 @@ module.exports = Em.Route.extend(App.RouterRedirections, {
             controller.loadAdvancedConfigs(wizardStep7Controller);
             wizardStep7Controller.set('isAdvancedConfigLoaded', false);
             router.transitionTo('step7');
-          });
-        }
+          }
+        });
       }
     }
   }),