mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-26 09:01:13 +02:00
33 lines
926 B
TypeScript
33 lines
926 B
TypeScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import Route from '@ember/routing/route';
|
|
|
|
import type LdapLibraryModel from 'vault/models/ldap/library';
|
|
import type Controller from '@ember/controller';
|
|
import type Transition from '@ember/routing/transition';
|
|
import type { Breadcrumb } from 'vault/vault/app-types';
|
|
|
|
interface LdapLibraryDetailsController extends Controller {
|
|
breadcrumbs: Array<Breadcrumb>;
|
|
model: LdapLibraryModel;
|
|
}
|
|
|
|
export default class LdapLibraryDetailsRoute extends Route {
|
|
setupController(
|
|
controller: LdapLibraryDetailsController,
|
|
resolvedModel: LdapLibraryModel,
|
|
transition: Transition
|
|
) {
|
|
super.setupController(controller, resolvedModel, transition);
|
|
|
|
controller.breadcrumbs = [
|
|
{ label: resolvedModel.backend, route: 'overview' },
|
|
{ label: 'libraries', route: 'libraries' },
|
|
{ label: resolvedModel.name },
|
|
];
|
|
}
|
|
}
|