mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-06-13 19:36:26 +03:00
formatting
This commit is contained in:
@@ -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>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -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[],
|
||||||
|
|||||||
Reference in New Issue
Block a user