|
|
@@ -110,7 +110,7 @@ module.exports = App.WizardRoute.extend({
|
|
|
});
|
|
|
},
|
|
|
|
|
|
- step1: Em.Route.extend({
|
|
|
+ step1: App.StepRoute.extend({
|
|
|
route: '/step1',
|
|
|
|
|
|
connectOutlets: function (router) {
|
|
|
@@ -127,7 +127,7 @@ module.exports = App.WizardRoute.extend({
|
|
|
return false;
|
|
|
},
|
|
|
|
|
|
- next: function (router) {
|
|
|
+ nextTransition: function (router) {
|
|
|
var kerberosWizardController = router.get('kerberosWizardController');
|
|
|
var kerberosStep1controller = router.get('kerberosWizardStep1Controller');
|
|
|
|
|
|
@@ -138,7 +138,7 @@ module.exports = App.WizardRoute.extend({
|
|
|
}
|
|
|
}),
|
|
|
|
|
|
- step2: Em.Route.extend({
|
|
|
+ step2: App.StepRoute.extend({
|
|
|
route: '/step2',
|
|
|
|
|
|
connectOutlets: function (router) {
|
|
|
@@ -155,16 +155,14 @@ module.exports = App.WizardRoute.extend({
|
|
|
unroutePath: function () {
|
|
|
return false;
|
|
|
},
|
|
|
- back: function(router) {
|
|
|
+ backTransition: function(router) {
|
|
|
var controller = router.get('kerberosWizardStep2Controller');
|
|
|
var kerberosWizardController = router.get('kerberosWizardController');
|
|
|
- if (!controller.get('isBackBtnDisabled')) {
|
|
|
- kerberosWizardController.overrideVisibility(controller.get('configs'), true, []);
|
|
|
- router.transitionTo('step1');
|
|
|
- }
|
|
|
+ kerberosWizardController.overrideVisibility(controller.get('configs'), true, []);
|
|
|
+ router.transitionTo('step1');
|
|
|
},
|
|
|
|
|
|
- next: function (router) {
|
|
|
+ nextTransition: function (router) {
|
|
|
var kerberosWizardController = router.get('kerberosWizardController');
|
|
|
var kerberosWizardStep2Controller = router.get('kerberosWizardStep2Controller');
|
|
|
|
|
|
@@ -186,7 +184,7 @@ module.exports = App.WizardRoute.extend({
|
|
|
}
|
|
|
}),
|
|
|
|
|
|
- step3: Em.Route.extend({
|
|
|
+ step3: App.StepRoute.extend({
|
|
|
route: '/step3',
|
|
|
|
|
|
connectOutlets: function (router) {
|
|
|
@@ -202,7 +200,7 @@ module.exports = App.WizardRoute.extend({
|
|
|
return false;
|
|
|
},
|
|
|
back: Em.Router.transitionTo('step2'),
|
|
|
- next: function (router) {
|
|
|
+ nextTransition: function (router) {
|
|
|
var kerberosWizardController = router.get('kerberosWizardController');
|
|
|
kerberosWizardController.setDBProperty('kerberosDescriptorConfigs', null);
|
|
|
kerberosWizardController.clearCachedStepConfigValues(router.get('kerberosWizardStep4Controller'));
|
|
|
@@ -210,7 +208,7 @@ module.exports = App.WizardRoute.extend({
|
|
|
}
|
|
|
}),
|
|
|
|
|
|
- step4: Em.Route.extend({
|
|
|
+ step4: App.StepRoute.extend({
|
|
|
route: '/step4',
|
|
|
|
|
|
connectOutlets: function (router) {
|
|
|
@@ -229,14 +227,14 @@ module.exports = App.WizardRoute.extend({
|
|
|
unroutePath: function () {
|
|
|
return false;
|
|
|
},
|
|
|
- back: function (router) {
|
|
|
+ backTransition: function (router) {
|
|
|
if (router.get('kerberosWizardController.skipClientInstall')) {
|
|
|
router.transitionTo('step2');
|
|
|
} else {
|
|
|
router.transitionTo('step3');
|
|
|
}
|
|
|
},
|
|
|
- next: function (router) {
|
|
|
+ nextTransition: function (router) {
|
|
|
var kerberosWizardController = router.get('kerberosWizardController');
|
|
|
var step5Controller = router.get('kerberosWizardStep5Controller');
|
|
|
var kerberosDescriptor = kerberosWizardController.get('kerberosDescriptorConfigs');
|
|
|
@@ -251,7 +249,7 @@ module.exports = App.WizardRoute.extend({
|
|
|
}
|
|
|
}),
|
|
|
|
|
|
- step5: Em.Route.extend({
|
|
|
+ step5: App.StepRoute.extend({
|
|
|
route: '/step5',
|
|
|
|
|
|
connectOutlets: function (router) {
|
|
|
@@ -279,9 +277,9 @@ module.exports = App.WizardRoute.extend({
|
|
|
kerberosWizardStep5Controller.getCSVData();
|
|
|
},
|
|
|
|
|
|
- back: Em.Router.transitionTo('step4'),
|
|
|
+ backTransition: Em.Router.transitionTo('step4'),
|
|
|
|
|
|
- next: function (router) {
|
|
|
+ nextTransition: function (router) {
|
|
|
var kerberosWizardController = router.get('kerberosWizardController');
|
|
|
kerberosWizardController.setDBProperties({
|
|
|
tasksStatuses: null,
|
|
|
@@ -291,7 +289,7 @@ module.exports = App.WizardRoute.extend({
|
|
|
}
|
|
|
}),
|
|
|
|
|
|
- step6: Em.Route.extend({
|
|
|
+ step6: App.StepRoute.extend({
|
|
|
route: '/step6',
|
|
|
|
|
|
connectOutlets: function (router) {
|
|
|
@@ -307,8 +305,8 @@ module.exports = App.WizardRoute.extend({
|
|
|
unroutePath: function () {
|
|
|
return false;
|
|
|
},
|
|
|
- back: Em.Router.transitionTo('step4'),
|
|
|
- next: function (router) {
|
|
|
+ backTransition: Em.Router.transitionTo('step4'),
|
|
|
+ nextTransition: function (router) {
|
|
|
var kerberosWizardController = router.get('kerberosWizardController');
|
|
|
kerberosWizardController.setDBProperties({
|
|
|
tasksStatuses: null,
|
|
|
@@ -318,7 +316,7 @@ module.exports = App.WizardRoute.extend({
|
|
|
}
|
|
|
}),
|
|
|
|
|
|
- step7: Em.Route.extend({
|
|
|
+ step7: App.StepRoute.extend({
|
|
|
route: '/step7',
|
|
|
|
|
|
connectOutlets: function (router) {
|
|
|
@@ -336,13 +334,13 @@ module.exports = App.WizardRoute.extend({
|
|
|
unroutePath: function () {
|
|
|
return false;
|
|
|
},
|
|
|
- back: Em.Router.transitionTo('step4'),
|
|
|
- next: function (router) {
|
|
|
+ backTransition: Em.Router.transitionTo('step4'),
|
|
|
+ nextTransition: function (router) {
|
|
|
router.transitionTo('step8');
|
|
|
}
|
|
|
}),
|
|
|
|
|
|
- step8: Em.Route.extend({
|
|
|
+ step8: App.StepRoute.extend({
|
|
|
route: '/step8',
|
|
|
|
|
|
connectOutlets: function (router) {
|
|
|
@@ -358,8 +356,8 @@ module.exports = App.WizardRoute.extend({
|
|
|
unroutePath: function () {
|
|
|
return false;
|
|
|
},
|
|
|
- back: Em.Router.transitionTo('step7'),
|
|
|
- next: function (router) {
|
|
|
+ backTransition: Em.Router.transitionTo('step7'),
|
|
|
+ nextTransition: function (router) {
|
|
|
var controller = router.get('kerberosWizardController');
|
|
|
controller.resetOnClose(controller, 'adminKerberos.index');
|
|
|
}
|