Rename onPersist to onChange for form fields (#11047)

We are about to build forms where fields will not be persisted
immediately. It will have to be submitted.
Renaming the prop to reflect it.
This commit is contained in:
Thomas Trompette
2025-03-20 10:58:02 +01:00
committed by GitHub
parent e666506ea3
commit 369abfe424
39 changed files with 238 additions and 238 deletions

View File

@ -117,7 +117,7 @@ export const WorkflowEditTriggerCronForm = ({
hint="Format: [Minute] [Hour] [Day of Month] [Month] [Day of Week]"
readonly={triggerOptions.readonly}
defaultValue={trigger.settings.pattern}
onPersist={(newPattern: string) => {
onChange={(newPattern: string) => {
if (triggerOptions.readonly === true) {
return;
}
@ -156,7 +156,7 @@ export const WorkflowEditTriggerCronForm = ({
error={errorMessagesVisible ? errorMessages.DAYS_day : undefined}
onBlur={onBlur}
defaultValue={trigger.settings.schedule.day}
onPersist={(newDay) => {
onChange={(newDay) => {
if (triggerOptions.readonly === true) {
return;
}
@ -205,7 +205,7 @@ export const WorkflowEditTriggerCronForm = ({
error={errorMessagesVisible ? errorMessages.DAYS_hour : undefined}
onBlur={onBlur}
defaultValue={trigger.settings.schedule.hour}
onPersist={(newHour) => {
onChange={(newHour) => {
if (triggerOptions.readonly === true) {
return;
}
@ -256,7 +256,7 @@ export const WorkflowEditTriggerCronForm = ({
}
onBlur={onBlur}
defaultValue={trigger.settings.schedule.minute}
onPersist={(newMinute) => {
onChange={(newMinute) => {
if (triggerOptions.readonly === true) {
return;
}
@ -311,7 +311,7 @@ export const WorkflowEditTriggerCronForm = ({
}
onBlur={onBlur}
defaultValue={trigger.settings.schedule.hour}
onPersist={(newHour) => {
onChange={(newHour) => {
if (triggerOptions.readonly === true) {
return;
}
@ -358,7 +358,7 @@ export const WorkflowEditTriggerCronForm = ({
}
onBlur={onBlur}
defaultValue={trigger.settings.schedule.minute}
onPersist={(newMinute) => {
onChange={(newMinute) => {
if (triggerOptions.readonly === true) {
return;
}
@ -406,7 +406,7 @@ export const WorkflowEditTriggerCronForm = ({
error={errorMessagesVisible ? errorMessages.MINUTES : undefined}
onBlur={onBlur}
defaultValue={trigger.settings.schedule.minute}
onPersist={(newMinute) => {
onChange={(newMinute) => {
if (triggerOptions.readonly === true) {
return;
}