mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-22 11:11:26 +01:00
32 lines
918 B
JavaScript
32 lines
918 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import Route from '@ember/routing/route';
|
|
import { service } from '@ember/service';
|
|
import { withConfirmLeave } from 'core/decorators/confirm-leave';
|
|
import { hash } from 'rsvp';
|
|
|
|
@withConfirmLeave('model.config', ['model.urls'])
|
|
export default class PkiConfigurationCreateRoute extends Route {
|
|
@service secretMountPath;
|
|
@service store;
|
|
|
|
model() {
|
|
return hash({
|
|
config: this.store.createRecord('pki/action'),
|
|
urls: this.modelFor('configuration').urls,
|
|
});
|
|
}
|
|
|
|
setupController(controller, resolvedModel) {
|
|
super.setupController(controller, resolvedModel);
|
|
controller.breadcrumbs = [
|
|
{ label: 'Secrets', route: 'secrets', linkExternal: true },
|
|
{ label: this.secretMountPath.currentPath, route: 'overview', model: this.secretMountPath.currentPath },
|
|
{ label: 'Configure' },
|
|
];
|
|
}
|
|
}
|