privilege having a parent than a schedule

This commit is contained in:
Ruben Fiszel
2022-07-30 01:17:12 +02:00
parent 2eeacc6f57
commit b914ccab1f
2 changed files with 14 additions and 16 deletions

View File

@@ -359,14 +359,6 @@
</div>
{/if}
<div>
{#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}`}
>{job.schedule_path}</a
></span
>
{/if}
{#if job && job.parent_job}
{#if job.is_flow_step}
<Icon class="text-gray-700" data={faWind} scale={SMALL_ICON_SCALE} /><span
@@ -381,6 +373,13 @@
Triggered by parent <a href={`/run/${job.parent_job}`}>{job.parent_job}</a></span
>
{/if}
{: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}`}
>{job.schedule_path}</a
></span
>
{:else}
<Icon class="text-gray-700" data={faUser} scale={SMALL_ICON_SCALE} /><span
class="mx-2"

View File

@@ -322,14 +322,6 @@ the bearer token they use has less privilege."
</div>
{/if}
<div>
{#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}`}>{job.schedule_path}</a
></span
>
{/if}
{#if job && job.parent_job}
{#if job.is_flow_step}
<Icon class="text-gray-700" data={faWind} scale={SMALL_ICON_SCALE} /><span
@@ -345,6 +337,13 @@ the bearer token they use has less privilege."
></span
>
{/if}
{: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}`}>{job.schedule_path}</a
></span
>
{:else}
<Icon class="text-gray-700" data={faUser} scale={SMALL_ICON_SCALE} /><span
class="mx-2"