open-vault/ui/app/routes/vault/cluster/secrets/backend/create.js
2018-10-18 14:54:35 -05:00

11 lines
280 B
JavaScript

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