Repository: ambari Updated Branches: refs/heads/branch-2.5 4e1fabb3a -> b696e9a6c
AMBARI-19276. Reset UI State does not clear ongoing wizard data (alexantonenko) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b696e9a6 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b696e9a6 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b696e9a6 Branch: refs/heads/branch-2.5 Commit: b696e9a6cc6cd0fbe05028d0b59312249284fdd7 Parents: 4e1fabb Author: Alex Antonenko <[email protected]> Authored: Fri Jan 13 18:44:49 2017 +0200 Committer: Alex Antonenko <[email protected]> Committed: Sat Jan 14 08:02:53 2017 +0200 ---------------------------------------------------------------------- ambari-web/app/controllers/experimental.js | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/b696e9a6/ambari-web/app/controllers/experimental.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/controllers/experimental.js b/ambari-web/app/controllers/experimental.js index 3642cd9..8b93761 100644 --- a/ambari-web/app/controllers/experimental.js +++ b/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'); }
