Browse Source

AMBARI-1251. Fix routing issues on Add Host Wizard. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1437773 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 năm trước cách đây
mục cha
commit
c84f72d9af

+ 2 - 0
CHANGES.txt

@@ -116,6 +116,8 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
+ AMBARI-1251. Fix routing issues on Add Host Wizard. (yusaku)
+
  AMBARI-1230. There is a big gap in the lower part of the Jobs table header.
  (yusaku)
 

+ 1 - 1
ambari-web/app/controllers/wizard.js

@@ -42,7 +42,7 @@ App.WizardController = Em.Controller.extend({
   },
 
   setStepsEnable: function () {
-    for (var i = 2; i <= this.totalSteps; i++) {
+    for (var i = 1; i <= this.totalSteps; i++) {
       var step = this.get('isStepDisabled').findProperty('step', i);
       if (i <= this.get('currentStep')) {
         step.set('value', false);

+ 0 - 3
ambari-web/app/routes/add_host_routes.js

@@ -67,9 +67,6 @@ module.exports = Em.Route.extend({
             addHostController.setCurrentStep('6');
             App.db.data = currentClusterStatus.localdb;
             break;
-          case 'ADD_HOSTS_COMPLETED_5' :
-            router.transitionTo('main.index');
-            break;
           default:
             break;
         }