allow to cancel running jobs, even if a scheduled job

This commit is contained in:
Ruben Fiszel
2023-08-20 21:12:46 +02:00
parent 776f584b7b
commit 2873e9a90e
@@ -167,7 +167,7 @@
{@const stem = `/${job?.job_kind}s`}
{@const isScript = job?.job_kind === 'script'}
{@const viewHref = `${stem}/get/${isScript ? job?.script_hash : job?.script_path}`}
{#if job?.type != 'CompletedJob' && !job?.schedule_path}
{#if job?.type != 'CompletedJob' && (!job?.schedule_path || job?.['running'] == true)}
{#if !forceCancel}
<Button
color="red"