fix(frontend): link to schedule in runs discriminate isFlows

This commit is contained in:
Ruben Fiszel
2022-08-20 13:04:42 +02:00
parent 3a44316749
commit d76eefe573
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -375,7 +375,8 @@
{:else if job && job.schedule_path}
<Icon class="text-gray-700" data={faCalendar} scale={SMALL_ICON_SCALE} />
<span class="mx-2"
>Triggered by the schedule: <a href={`/schedule/add?edit=${job.schedule_path}`}
>Triggered by the schedule: <a
href={`/schedule/add?edit=${job.schedule_path}&isFlow=${job.job_kind == 'flow'}`}
>{job.schedule_path}</a
></span
>
+3 -1
View File
@@ -336,7 +336,9 @@ the bearer token they use has less privilege."
<Icon class="text-gray-700" data={faCalendar} scale={SMALL_ICON_SCALE} />
<span class="mx-2"
>Triggered by the schedule: <a
href={`/schedule/add?edit=${job.schedule_path}`}>{job.schedule_path}</a
href={`/schedule/add?edit=${job.schedule_path}&isFlow=${
job.job_kind == 'flow'
}`}>{job.schedule_path}</a
></span
>
{:else}