Browse Source

AMBARI-19276. Reset UI State does not clear ongoing wizard data (alexantonenko)

Alex Antonenko 8 years ago
parent
commit
b696e9a6cc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      ambari-web/app/controllers/experimental.js

+ 2 - 0
ambari-web/app/controllers/experimental.js

@@ -63,12 +63,14 @@ App.ExperimentalController = Em.Controller.extend(App.UserPref, {
         template: Ember.Handlebars.compile(Em.I18n.t('reset.ui.states.body'))
       }),
       primary: Em.I18n.t('yes'),
+      context: self,
       onPrimary: function () {
         var router = App.router;
         App.db.cleanUp();
         router.clearAllSteps();
         App.cache.clear();
         App.clusterStatus.setClusterStatus({});
+        this.context.postUserPref('wizard-data', {});
         this.hide();
         router.transitionTo('root.index');
       }