open-vault/ui/app/components/secret-list-header.js
Jordan Reimer e733c78ff6
Secrets header version badge (#13015)
* updates secret list header to display badge for all versions

* adds changelog entry

* updates secret list header to only show badge for kv and generic engine types

* adds secret-engine mirage factory

* adds test helper for pushing serialized mirage data into store and returning ember data models

* adds secret engine type version badge display test

* updates mirage application serializer to return singular type key
2021-11-08 14:29:00 -07:00

16 lines
320 B
JavaScript

import Component from '@glimmer/component';
export default class SecretListHeader extends Component {
// api
isCertTab = false;
isConfigure = false;
baseKey = null;
backendCrumb = null;
model = null;
options = null;
get isKV() {
return ['kv', 'generic'].includes(this.args.model.engineType);
}
}