Form action field base settings (#11035)
- Add settings for text and number fields - Settings are for now the same but I still separated with two components because they will evolve https://github.com/user-attachments/assets/96b7fffd-c3a1-45b9-aeaa-45d63505de3c
This commit is contained in:
@ -88,9 +88,12 @@ export const workflowFormActionSettingsSchema =
|
||||
z.object({
|
||||
id: z.string().uuid(),
|
||||
label: z.string(),
|
||||
type: z.nativeEnum(FieldMetadataType),
|
||||
type: z.union([
|
||||
z.literal(FieldMetadataType.TEXT),
|
||||
z.literal(FieldMetadataType.NUMBER),
|
||||
]),
|
||||
placeholder: z.string().optional(),
|
||||
settings: z.record(z.any()),
|
||||
settings: z.record(z.any()).optional(),
|
||||
}),
|
||||
),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user