Repository: ambari Updated Branches: refs/heads/trunk 1b54f56d5 -> 0a570c671
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/0a570c67 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/0a570c67 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/0a570c67 Branch: refs/heads/trunk Commit: 0a570c6713be7f9271b40657ee3b3aa01c26d887 Parents: 1b54f56 Author: Alex Antonenko <[email protected]> Authored: Fri Jan 13 18:44:49 2017 +0200 Committer: Alex Antonenko <[email protected]> Committed: Sat Jan 14 08:05:36 2017 +0200 ---------------------------------------------------------------------- ambari-web/app/controllers/experimental.js | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/0a570c67/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'); }
