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

12 lines
323 B
JavaScript
Raw Normal View History

import Route from '@ember/routing/route';
2018-04-03 14:16:57 +00:00
export default Route.extend({
2018-10-08 15:07:35 +00:00
beforeModel() {
let { secret, initialKey } = this.paramsFor(this.routeName);
let qp = initialKey || secret;
return this.transitionTo('vault.cluster.secrets.backend.create-root', {
queryParams: { initialKey: qp },
2018-04-03 14:16:57 +00:00
});
},
});