From da09d2abbf5aa6d27a4187006dc3c887409364bd Mon Sep 17 00:00:00 2001 From: Adrian Galvan Date: Fri, 10 Nov 2023 12:23:35 -0800 Subject: [PATCH] Fixing request type field (#4414) --- CHANGELOG.md | 1 + .../e2e/system-integrations-plus.cy.ts | 6 +- .../src/features/common/form/inputs.tsx | 7 + .../forms/ConnectorParametersForm.tsx | 132 +++++++++--------- 4 files changed, 78 insertions(+), 68 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e21474f48..1d58b362f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -45,6 +45,7 @@ The types of changes are: ### Fixed - Persist bulk system add filter modal state [#4412](https://github.com/ethyca/fides/pull/4412) +- Fixing labels for request type field [#4414](https://github.com/ethyca/fides/pull/4414) ## [2.23.3](https://github.com/ethyca/fides/compare/2.23.2...2.23.3) diff --git a/clients/admin-ui/cypress/e2e/system-integrations-plus.cy.ts b/clients/admin-ui/cypress/e2e/system-integrations-plus.cy.ts index 9d55ad8738..56b5266106 100644 --- a/clients/admin-ui/cypress/e2e/system-integrations-plus.cy.ts +++ b/clients/admin-ui/cypress/e2e/system-integrations-plus.cy.ts @@ -72,9 +72,9 @@ describe("System integrations", () => { it("should display Request types (enabled-actions) field", () => { cy.getByTestId("enabled-actions").should("exist"); cy.getByTestId("enabled-actions").within(() => { - cy.contains("access"); - cy.contains("erasure"); - cy.contains("consent").should("not.exist"); + cy.contains("Access"); + cy.contains("Erasure"); + cy.contains("Consent").should("not.exist"); }); }); }); diff --git a/clients/admin-ui/src/features/common/form/inputs.tsx b/clients/admin-ui/src/features/common/form/inputs.tsx index b2c672aa02..5416729ca3 100644 --- a/clients/admin-ui/src/features/common/form/inputs.tsx +++ b/clients/admin-ui/src/features/common/form/inputs.tsx @@ -267,6 +267,13 @@ export const SelectInput = ({ components.Option = CustomOption; } + if (isDisabled) { + // prevent the tags from being removed if the input is disabled + components.MultiValueRemove = function CustomMultiValueRemove() { + return null; + }; + } + return (