Move SecretListHeader and SecretListHeaderTab to addon folder (#16981)

* move two components to add on and create new helper for engines

* change nmae of options-for-backend. will need conditional in template

* move options for backend

* pass through isEngine to secretListHeaderTab

* secret list header remove comments

* conditional options-for-backend

* missing part for documentation

* pr comments cleanup

* cleanup

* cleanup

* cleanup
This commit is contained in:
Angel Garbarino
2022-09-07 14:04:41 -07:00
committed by GitHub
parent e3fd538b1a
commit 8df0232a78
13 changed files with 114 additions and 52 deletions

View File

@@ -16,12 +16,14 @@ import { encodePath } from 'vault/utils/path-encoding-helpers';
* @param {string} [root=null] - Used to set the secretPath.
* @param {boolean} [showCurrent=true] - Boolean to show the second part of the breadcrumb, ex: the secret's name.
* @param {boolean} [linkToPaths=true] - If true link to the path.
* @param {boolean} [isEngine=false] - Change the LinkTo if the path is coming from an engine.
*/
export default class KeyValueHeader extends Component {
get showCurrent() {
return this.args.showCurrent || true;
}
get linkToPaths() {
return this.args.linkToPaths || true;
}