open-vault/ui/mirage/serializers/application.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

8 lines
161 B
JavaScript

import { JSONAPISerializer } from 'ember-cli-mirage';
export default JSONAPISerializer.extend({
typeKeyForModel(model) {
return model.modelName;
},
});