Browse Source

AMBARI-17837 Enable NN HA wiz: closing wiz on step 6, will leave it running for all other cluster users. (atkach)

Andrii Tkach 9 years ago
parent
commit
ee6ea3c28b

+ 2 - 15
ambari-web/app/controllers/main/admin/highAvailability/progress_controller.js

@@ -35,21 +35,8 @@ App.HighAvailabilityProgressPageController = App.HighAvailabilityWizardControlle
         var controller = App.router.get('highAvailabilityWizardController');
         controller.clearTasksData();
         controller.clearStorageData();
-        controller.finish();
-        App.router.get('updateController').set('isWorking', true);
-        App.clusterStatus.setClusterStatus({
-          clusterName: App.router.get('content.cluster.name'),
-          clusterState: 'DEFAULT',
-          localdb: App.db.data
-        }, {
-          alwaysCallback: function () {
-            self.hide();
-            App.router.transitionTo('main.index');
-            Em.run.next(function () {
-              location.reload();
-            });
-          }
-        });
+        controller.resetOnClose(controller, 'main.services.index');
+        this.hide();
       },
       secondary: Em.I18n.t('no'),
       onSecondary: function () {