mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-21 18:51:41 +01:00
* title case all Secrets to route secret breadcrumbs * fix kv navigation test * welp missed some kv tests
30 lines
1.2 KiB
JavaScript
30 lines
1.2 KiB
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import Route from '@ember/routing/route';
|
|
import { service } from '@ember/service';
|
|
|
|
export default class PkiRolesErrorRoute extends Route {
|
|
@service secretMountPath;
|
|
|
|
setupController(controller) {
|
|
super.setupController(...arguments);
|
|
controller.breadcrumbs = [
|
|
{ label: 'Secrets', route: 'secrets', linkExternal: true },
|
|
{ label: this.secretMountPath.currentPath, route: 'overview' },
|
|
];
|
|
controller.tabs = [
|
|
{ label: 'Overview', route: 'overview', model: this.secretMountPath.currentPath },
|
|
{ label: 'Roles', route: 'roles.index', model: this.secretMountPath.currentPath },
|
|
{ label: 'Issuers', route: 'issuers.index', model: this.secretMountPath.currentPath },
|
|
{ label: 'Keys', route: 'keys.index', model: this.secretMountPath.currentPath },
|
|
{ label: 'Certificates', route: 'certificates.index', model: this.secretMountPath.currentPath },
|
|
{ label: 'Tidy', route: 'tidy.index', model: this.secretMountPath.currentPath },
|
|
{ label: 'Configuration', route: 'configuration.index', model: this.secretMountPath.currentPath },
|
|
];
|
|
controller.title = this.secretMountPath.currentPath;
|
|
}
|
|
}
|