diff --git a/app/Models/Schedule.php b/app/Models/Schedule.php index 384d354a..f72b866d 100644 --- a/app/Models/Schedule.php +++ b/app/Models/Schedule.php @@ -103,7 +103,7 @@ class Schedule extends Model */ public static $validationRules = [ 'server_id' => 'required|exists:servers,id', - 'name' => 'nullable|string|max:255', + 'name' => 'nullable|string|max:75', 'cron_day_of_week' => 'required|string', 'cron_day_of_month' => 'required|string', 'cron_hour' => 'required|string', diff --git a/resources/scripts/components/server/schedules/ScheduleTaskRow.tsx b/resources/scripts/components/server/schedules/ScheduleTaskRow.tsx index 4ab5eeef..7674553c 100644 --- a/resources/scripts/components/server/schedules/ScheduleTaskRow.tsx +++ b/resources/scripts/components/server/schedules/ScheduleTaskRow.tsx @@ -81,7 +81,7 @@ export default ({ schedule, task }: Props) => {
{task.action === 'backup' &&

Ignoring files & folders:

} -
+
{task.payload}
diff --git a/resources/scripts/components/server/schedules/TaskDetailsModal.tsx b/resources/scripts/components/server/schedules/TaskDetailsModal.tsx index 1ef64c13..e1fca0cb 100644 --- a/resources/scripts/components/server/schedules/TaskDetailsModal.tsx +++ b/resources/scripts/components/server/schedules/TaskDetailsModal.tsx @@ -57,45 +57,46 @@ const TaskDetailsForm = ({ isEditingTask }: { isEditingTask: boolean }) => {
-
- {action === 'command' ? - - : - action === 'power' ? -
- - - - - - - - - -
- : -
- - - - -
- } +
+
- + {action === 'command' ? +
+ + + + +
+ : + action === 'power' ? +
+ + + + + + + + + +
+ : +
+ + + + +
+ }