From 5fcc844651d0d58a514304d4285bbb98be0917d7 Mon Sep 17 00:00:00 2001 From: Alexander Petric Date: Sat, 23 Nov 2024 02:52:42 -0500 Subject: [PATCH] add documentation link for cron input field (#4779) --- frontend/src/lib/components/CronInput.svelte | 6 ++ .../lib/components/ScheduleEditorInner.svelte | 64 ++++++++++++------- 2 files changed, 48 insertions(+), 22 deletions(-) diff --git a/frontend/src/lib/components/CronInput.svelte b/frontend/src/lib/components/CronInput.svelte index ab8c6592b9..1feedad79e 100644 --- a/frontend/src/lib/components/CronInput.svelte +++ b/frontend/src/lib/components/CronInput.svelte @@ -210,6 +210,12 @@
Invalid cron syntax
{/if} +
+ Croner +
v2 schedule = cronV1toV2(schedule) - } else if (cronVersion === 'v1' && initialCronVersion === 'v1' && (schedule !== initialSchedule)) { + } else if ( + cronVersion === 'v1' && + initialCronVersion === 'v1' && + schedule !== initialSchedule + ) { // revert back to original schedule = initialSchedule } @@ -635,25 +639,41 @@
- Schedules use CRON syntax. Seconds are mandatory. + {#if cronVersion === 'v1'} + Schedules use CRON syntax. Seconds are mandatory. + {:else} + Schedules use extended CRON syntax. + {/if} {#if initialCronVersion !== 'v2'} -
- - -
+
+ + +
{/if} - +