mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-14 07:11:11 +01:00
metrics route takes start and end params and passes to the date display field, as well as the route's API call
15 lines
451 B
JavaScript
15 lines
451 B
JavaScript
import ApplicationSerializer from '../application';
|
|
|
|
export default ApplicationSerializer.extend({
|
|
normalizeResponse(store, primaryModelClass, payload, id, requestType) {
|
|
const normalizedPayload = {
|
|
id: payload.id,
|
|
data: {
|
|
...payload.data,
|
|
enabled: payload.data.enabled.includes('enabled') ? 'On' : 'Off',
|
|
},
|
|
};
|
|
return this._super(store, primaryModelClass, normalizedPayload, id, requestType);
|
|
},
|
|
});
|