Disable stringify by default and enable it for authorization (#19871)

This commit is contained in:
Erik Jan de Wit 2023-04-21 13:15:42 +02:00 committed by GitHub
parent 6016ebd442
commit 399bd42124
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View file

@ -160,6 +160,7 @@ export const ExecutionConfigModal = ({
</FormGroup>
<FormProvider {...form}>
<DynamicComponents
stringify
properties={configDescription.properties || []}
/>
</FormProvider>

View file

@ -5,8 +5,7 @@ import { convertAttributeNameToForm } from "../../util";
type DynamicComponentProps = {
properties: ConfigPropertyRepresentation[];
selectedValues?: string[];
parentCallback?: (data: string[]) => void;
stringify?: boolean;
};
export const DynamicComponents = ({

View file

@ -11,6 +11,7 @@ export const MultiValuedStringComponent = ({
label,
defaultValue,
helpText,
stringify,
isDisabled = false,
}: ComponentProps) => {
const { t } = useTranslation("dynamic");
@ -32,7 +33,7 @@ export const MultiValuedStringComponent = ({
addButtonLabel={t("addMultivaluedLabel", {
fieldLabel: t(label!).toLowerCase(),
})}
stringify
stringify={stringify}
/>
</FormGroup>
);

View file

@ -16,6 +16,7 @@ import { TextComponent } from "./TextComponent";
export type ComponentProps = Omit<ConfigPropertyRepresentation, "type"> & {
isDisabled?: boolean;
stringify?: boolean;
};
const ComponentTypes = [