mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 15:11:07 +02:00
* starting * add the details functionality * test coverage * welp, friday fingers * small small changes * Update ui/app/models/gcp/config.js Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com> * Update ui/app/helpers/mountable-secret-engines.js Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com> * update small changes on model * reorder loop on configuration details * Update ui/tests/integration/components/secret-engine/configuration-details-test.js Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com> * Update ui/app/models/gcp/config.js Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com> * Update ui/app/models/gcp/config.js Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com> * Update ui/app/routes/vault/cluster/secrets/backend/configuration/index.js Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com> * add comment --------- Co-authored-by: claire bontempo <68122737+hellobontempo@users.noreply.github.com>
24 lines
608 B
JavaScript
24 lines
608 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import ApplicationSerializer from '../application';
|
|
|
|
export default class GcpConfigSerializer extends ApplicationSerializer {
|
|
normalizeResponse(store, primaryModelClass, payload, id, requestType) {
|
|
if (!payload.data) {
|
|
return super.normalizeResponse(...arguments);
|
|
}
|
|
|
|
const normalizedPayload = {
|
|
id: payload.id,
|
|
backend: payload.backend,
|
|
data: {
|
|
...payload.data,
|
|
},
|
|
};
|
|
return super.normalizeResponse(store, primaryModelClass, normalizedPayload, id, requestType);
|
|
}
|
|
}
|