Use the children summary instead of alloc summary when applicable

This commit is contained in:
Michael Lange 2018-01-23 13:26:07 -08:00
parent d8bd9dec77
commit 67cee01f11
2 changed files with 8 additions and 2 deletions

View file

@ -12,5 +12,11 @@
{{/if}}
</td>
<td data-test-job-allocations>
<div class="inline-chart">{{allocation-status-bar allocationContainer=job isNarrow=true}}</div>
<div class="inline-chart">
{{#if job.hasChildren}}
{{children-status-bar job=job isNarrow=true}}
{{else}}
{{allocation-status-bar allocationContainer=job isNarrow=true}}
{{/if}}
</div>
</td>

View file

@ -28,7 +28,7 @@
{{#t.sort-by prop="type"}}Type{{/t.sort-by}}
{{#t.sort-by prop="priority"}}Priority{{/t.sort-by}}
<th>Groups</th>
<th class="is-3">Allocation Status</th>
<th class="is-3">Summary</th>
{{/t.head}}
{{#t.body key="model.id" as |row|}}
{{job-row data-test-job-row job=row.model onClick=(action "gotoJob" row.model)}}