2018-09-25 16:28:26 +00:00
|
|
|
import { inject as service } from '@ember/service';
|
|
|
|
import Route from '@ember/routing/route';
|
2018-05-23 16:25:52 +00:00
|
|
|
|
2018-09-25 16:28:26 +00:00
|
|
|
export default Route.extend({
|
|
|
|
wizard: service(),
|
2018-05-23 16:25:52 +00:00
|
|
|
model() {
|
2018-08-28 05:03:55 +00:00
|
|
|
let backend = this.modelFor('vault.cluster.secrets.backend');
|
|
|
|
if (this.get('wizard.featureState') === 'list') {
|
|
|
|
this.get('wizard').transitionFeatureMachine(
|
|
|
|
this.get('wizard.featureState'),
|
|
|
|
'CONTINUE',
|
|
|
|
backend.get('type')
|
|
|
|
);
|
|
|
|
}
|
|
|
|
return backend;
|
2018-05-23 16:25:52 +00:00
|
|
|
},
|
|
|
|
});
|