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

11 lines
290 B
JavaScript

import Route from '@ember/routing/route';
export default Route.extend({
beforeModel(transition) {
let { secret } = this.paramsFor(this.routeName);
return this.transitionTo('vault.cluster.secrets.backend.create-root', {
queryParams: { initialKey: secret },
});
},
});