mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-22 11:11:26 +01:00
35 lines
1.0 KiB
JavaScript
35 lines
1.0 KiB
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';
|
|
|
|
@withConfirmLeave('model.config', ['model.urls', 'model.crl'])
|
|
export default class PkiConfigurationEditRoute extends Route {
|
|
@service secretMountPath;
|
|
|
|
model() {
|
|
const { acme, cluster, urls, crl, engine } = this.modelFor('configuration');
|
|
return {
|
|
engineId: engine.id,
|
|
acme,
|
|
cluster,
|
|
urls,
|
|
crl,
|
|
};
|
|
}
|
|
|
|
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: 'Configuration', route: 'configuration.index', model: this.secretMountPath.currentPath },
|
|
{ label: 'Edit' },
|
|
];
|
|
}
|
|
}
|