Disable stringify
by default and enable it for authorization (#19871)
This commit is contained in:
parent
6016ebd442
commit
399bd42124
4 changed files with 5 additions and 3 deletions
|
@ -160,6 +160,7 @@ export const ExecutionConfigModal = ({
|
|||
</FormGroup>
|
||||
<FormProvider {...form}>
|
||||
<DynamicComponents
|
||||
stringify
|
||||
properties={configDescription.properties || []}
|
||||
/>
|
||||
</FormProvider>
|
||||
|
|
|
@ -5,8 +5,7 @@ import { convertAttributeNameToForm } from "../../util";
|
|||
|
||||
type DynamicComponentProps = {
|
||||
properties: ConfigPropertyRepresentation[];
|
||||
selectedValues?: string[];
|
||||
parentCallback?: (data: string[]) => void;
|
||||
stringify?: boolean;
|
||||
};
|
||||
|
||||
export const DynamicComponents = ({
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
|
|
@ -16,6 +16,7 @@ import { TextComponent } from "./TextComponent";
|
|||
|
||||
export type ComponentProps = Omit<ConfigPropertyRepresentation, "type"> & {
|
||||
isDisabled?: boolean;
|
||||
stringify?: boolean;
|
||||
};
|
||||
|
||||
const ComponentTypes = [
|
||||
|
|
Loading…
Reference in a new issue