formatting

This commit is contained in:
proddy
2026-06-08 20:41:05 +02:00
parent 8a45e79071
commit ecf416dc0a
2 changed files with 6 additions and 10 deletions

View File

@@ -286,11 +286,7 @@ const SchedulerDialog = ({
onChange={updateFormValue} onChange={updateFormValue}
/> />
{isTimerSchedule && ( {isTimerSchedule && (
<Typography <Typography sx={{ ml: 2, mt: 4 }} color="warning" variant="body2">
sx={{ ml: 2, mt: 4 }}
color="warning"
variant="body2"
>
{LL.SCHEDULER_HELP_2()} {LL.SCHEDULER_HELP_2()}
</Typography> </Typography>
)} )}

View File

@@ -238,13 +238,13 @@ export const schedulerItemValidation = (
NAME_PATTERN_REQUIRED, NAME_PATTERN_REQUIRED,
uniqueNameValidator(schedule, scheduleItem.o_name) uniqueNameValidator(schedule, scheduleItem.o_name)
], ],
cmd_name: [ cmd_name: [{ required: true, message: 'Command is required' }]
{ required: true, message: 'Command is required' }
]
}); });
export const uniqueCommandNameValidator = (commands: CommandItem[], o_name?: string) => export const uniqueCommandNameValidator = (
createUniqueNameValidator(commands, o_name); commands: CommandItem[],
o_name?: string
) => createUniqueNameValidator(commands, o_name);
export const commandItemValidation = ( export const commandItemValidation = (
commands: CommandItem[], commands: CommandItem[],