Watch
0
0
Fork
You've already forked hyperhive
0

swarm-ui: format the schedules page with treefmt

This commit is contained in:
iris 2026-10-04 17:37:31 +02:00 • committed by mara
commit 207b089498

View file

@ -92,7 +92,8 @@ export function ScheduleForm({
? amountNum * UNIT_SECONDS[unit]
: null;
const startUnix = fromLocalInput(start);
const cadenceValid = startUnix !== null && (!repeat || intervalSeconds !== null);
const cadenceValid =
startUnix !== null && (!repeat || intervalSeconds !== null);
const picked: MultiselectFilterState = { values: agents, negate: false };
const toggleAgent = (a: string) =>
@ -260,7 +261,10 @@ export function ScheduleForm({
</p>
) : null}
{error ? (
<ApiErrorPanel context="failed to save the schedule" problem={error} />
<ApiErrorPanel
context="failed to save the schedule"
problem={error}
/>
) : null}
<div class="ui-schedule-form-actions">
<Button onClick={onCancel}>cancel</Button>