-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: pki engine breadcrumbs #18113
UI: pki engine breadcrumbs #18113
Conversation
This reverts commit d2140dc.
constructor() { | ||
super(...arguments); | ||
this.args.breadcrumbs.forEach((breadcrumb) => { | ||
assert('breadcrumb has a label key', Object.keys(breadcrumb).includes('label')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
<li> | ||
<span class="sep">/</span> | ||
{{#if breadcrumb.linkExternal}} | ||
<LinkToExternal @route={{breadcrumb.path}}>{{breadcrumb.label}}</LinkToExternal> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nit but would route
be a better name for the breadcrumb prop than path in case someone would think that it expects configuration/edit
rather than configuration.edit
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah - I had copied path
over, but I agree route
makes more sense here
* move mountPoint to parent PkiController and extend for engine routes * breadcrumb attempt * Revert "breadcrumb attempt" This reverts commit d2140dc. * make breadcrumb component * revert extending pki controller * move file import * generalize breadcrumb component * restructure files * remove docs * cleanup jsdoc and test * add to pki role details page * address comments * fix test
Simple breadcrumb component to use until we can incorporate HDS components into Vault