refact: add conditional table logic (#15330)
This commit is contained in:
parent
bebbf340e2
commit
9e6025f25b
|
@ -2,7 +2,8 @@
|
|||
<div class="boxed-section-head">
|
||||
Allocations
|
||||
</div>
|
||||
<div class="boxed-section-body is-full-bleed">
|
||||
<div class="boxed-section-body {{if this.job.allocations.length "is-full-bleed"}}">
|
||||
{{#if @deployment.allocations.length}}
|
||||
<ListTable @source={{@deployment.allocations}} @class="allocations" as |t|>
|
||||
<t.head>
|
||||
<th class="is-narrow"></th>
|
||||
|
@ -25,5 +26,21 @@
|
|||
/>
|
||||
</t.body>
|
||||
</ListTable>
|
||||
{{else}}
|
||||
<div class="empty-message" data-test-empty-recent-allocations>
|
||||
<h3
|
||||
class="empty-message-headline"
|
||||
data-test-empty-recent-allocations-headline
|
||||
>
|
||||
No Allocations
|
||||
</h3>
|
||||
<p
|
||||
class="empty-message-body"
|
||||
data-test-empty-recent-allocations-message
|
||||
>
|
||||
No allocations have been placed.
|
||||
</p>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue