Skip to content

Commit

Permalink
chore(fe): ⚡ update task form label for scheduler (Cron)
Browse files Browse the repository at this point in the history
  • Loading branch information
lehuygiang28 committed Aug 21, 2024
1 parent 8ceb445 commit bab34a9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions apps/fe/src/components/form/task-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,21 @@ export function TaskForm({ mode, defaultValues, onSubmit, formProps }: TaskFormP
<Item<TaskFormValues>
{...field}
name={'cron'}
label={'Cron'}
label={'Scheduler (Cron)'}
validateStatus={errors?.cron ? 'error' : 'validating'}
help={<>{errors?.cron?.message}</>}
>
<Space direction="vertical" style={{ width: '100%' }}>
<Cron
value={cronValues.cronValue}
setValue={(newValue: string) => {
dispatchCronValues({
type: 'set_values',
value: newValue,
});
}}
leadingZero={false}
/>
<Input
ref={ref}
name={'cron'}
Expand All @@ -327,16 +337,6 @@ export function TaskForm({ mode, defaultValues, onSubmit, formProps }: TaskFormP
});
}}
/>
<Cron
value={cronValues.cronValue}
setValue={(newValue: string) => {
dispatchCronValues({
type: 'set_values',
value: newValue,
});
}}
leadingZero={false}
/>
</Space>
</Item>
)}
Expand Down

0 comments on commit bab34a9

Please sign in to comment.