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