2021-12-13 15:29:25 +00:00
|
|
|
<Trigger @onError={{action this.onError}} @do={{this.fetchParent}} as |trigger|>
|
2021-12-08 19:26:25 +00:00
|
|
|
{{did-insert trigger.fns.do}}
|
2021-12-09 16:32:28 +00:00
|
|
|
{{#if trigger.data.isBusy}}
|
2021-12-08 19:26:25 +00:00
|
|
|
<li>
|
2021-12-09 16:32:28 +00:00
|
|
|
<a href="#" aria-label="loading" data-test-breadcrumb="loading">
|
|
|
|
…
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
{{#if trigger.data.isSuccess}}
|
|
|
|
{{#if trigger.data.result}}
|
|
|
|
<li>
|
|
|
|
<LinkTo
|
|
|
|
@route="jobs.job.index"
|
2022-02-10 15:55:32 +00:00
|
|
|
@model={{trigger.data.result}}
|
2021-12-15 16:56:26 +00:00
|
|
|
data-test-breadcrumb={{"jobs.job.index"}}
|
2021-12-09 16:32:28 +00:00
|
|
|
>
|
2021-12-16 14:54:46 +00:00
|
|
|
<dl>
|
|
|
|
<dt>
|
|
|
|
Parent Job
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
{{trigger.data.result.trimmedName}}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
2021-12-09 16:32:28 +00:00
|
|
|
</LinkTo>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
<li>
|
|
|
|
<LinkTo
|
|
|
|
@route="jobs.job.index"
|
2022-02-10 15:55:32 +00:00
|
|
|
@model={{this.job}}
|
2021-12-15 16:56:26 +00:00
|
|
|
data-test-breadcrumb={{"jobs.job.index"}}
|
|
|
|
data-test-job-breadcrumb
|
2021-12-09 16:32:28 +00:00
|
|
|
>
|
2021-12-16 14:54:46 +00:00
|
|
|
<dl>
|
|
|
|
<dt>
|
|
|
|
{{if this.job.hasChildren "Parent Job" "Job"}}
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
{{this.job.trimmedName}}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
2021-12-08 19:26:25 +00:00
|
|
|
</LinkTo>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
|
|
|
</Trigger>
|