open-vault/ui/app/routes/vault/cluster/secrets/backend/configuration.js

18 lines
462 B
JavaScript
Raw Normal View History

import { inject as service } from '@ember/service';
import Route from '@ember/routing/route';
export default Route.extend({
wizard: service(),
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;
},
});