Pārlūkot izejas kodu

AMBARI-2208. Reassign Master Wizard: refreshing page on step 2, 3 or 4 breaks wizard. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1487198 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 gadi atpakaļ
vecāks
revīzija
7c0e6106ea

+ 6 - 3
CHANGES.txt

@@ -899,13 +899,16 @@ Trunk (unreleased changes):
 
  BUG FIXES
 
- AMBARI-2205.  Reassign Master Wizard: Installing master with TIMEDOUT should
+ AMBARI-2208. Reassign Master Wizard: refreshing page on step 2, 3 or 4 breaks
+ wizard. (yusaku)
+
+ AMBARI-2205. Reassign Master Wizard: Installing master with TIMEDOUT should
  not be completed. (yusaku)
  
- AMBARI-2204.  Reassign Master Wizard: Review Config shouldn't show unchanged
+ AMBARI-2204. Reassign Master Wizard: Review Config shouldn't show unchanged
  values. (yusaku)
 
- AMBARI-2203.  Background operations popup does not automatically refresh the
+ AMBARI-2203. Background operations popup does not automatically refresh the
  task log. (yusaku)
 
  AMBARI-2202. Running the smoke test for a specific service should set the

+ 3 - 1
ambari-web/app/controllers/main/service/item.js

@@ -193,7 +193,9 @@ App.MainServiceItemController = Em.Controller.extend({
    */
   reassignMaster: function (hostComponent) {
     console.log('In Reassign Master', hostComponent);
-    App.router.get('reassignMasterController').saveComponentToReassign(hostComponent);
+    var reassignMasterController = App.router.get('reassignMasterController');
+    reassignMasterController.saveComponentToReassign(hostComponent);
+    reassignMasterController.setCurrentStep('1');
     App.router.transitionTo('reassignMaster');
   },
 

+ 0 - 2
ambari-web/app/routes/reassign_master_routes.js

@@ -54,8 +54,6 @@ module.exports = Em.Route.extend({
         if (currentClusterStatus && currentClusterStatus.clusterState == 'REASSIGN_MASTER_INSTALLING') {
           reassignMasterController.setCurrentStep('5');
           App.db.data = currentClusterStatus.localdb;
-        } else {
-          reassignMasterController.setCurrentStep('1');
         }
         router.transitionTo('step' + reassignMasterController.get('currentStep'));
       });