ensure schedule is deployed to edit and open advanced (#5626)

This commit is contained in:
Guilhem
2025-04-16 22:57:52 +01:00
committed by GitHub
parent a296c084e1
commit b58a67fce7
@@ -92,7 +92,7 @@
right: 'Enabled'
}}
on:change={async (e) => {
if (!newItem) {
if (!newItem && $initialPrimarySchedule != false) {
await ScheduleService.setScheduleEnabled({
path: path,
workspace: $workspaceStore ?? '',
@@ -143,7 +143,7 @@
<p class="text-xs text-tertiary mt-10">Define a schedule frequency first</p>
{/if}
{#if $initialPrimarySchedule != false}
{#if $initialPrimarySchedule != false && !newItem}
<div class="flex">
<Button size="xs" color="light" on:click={() => scheduleEditor?.openEdit(path, isFlow)}
>Advanced</Button