mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-19 13:41:10 +02:00
* fix cluster/config actually saving doh * add mkdown copy * add acme config to edit form * fix tests * add empty state capabilities test * add acceptance test for mixed permission save * swap order to match form * update copy * make markdown changes * fix y
35 lines
959 B
JavaScript
35 lines
959 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import Route from '@ember/routing/route';
|
|
import { inject as 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' },
|
|
{ label: 'configuration', route: 'configuration.index' },
|
|
{ label: 'edit' },
|
|
];
|
|
}
|
|
}
|