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