mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
ui: fix AllocationRow for job without action (#19505)
The allocation table header sometimes conditionally renders the `Actions` table column, but the allocation row would render it unconditionally, resulting in broken tables when rendering allocations for jobs without actions, where rows had more columns than the header. Also fix the conditional class for the deployments allocation table to read `length` from the right value.
This commit is contained in:
3
.changelog/19505.txt
Normal file
3
.changelog/19505.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
ui: Fix rendering of allocations table for jobs that don't have actions
|
||||
```
|
||||
@@ -137,4 +137,6 @@
|
||||
@error={{this.statsError}}
|
||||
/>
|
||||
</td>
|
||||
<td class="job-actions-cell" />
|
||||
{{#if this.model.job.actions.length}}
|
||||
<td class="job-actions-cell" />
|
||||
{{/if}}
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<div class="boxed-section-head">
|
||||
Allocations
|
||||
</div>
|
||||
<div class="boxed-section-body {{if this.job.allocations.length "is-full-bleed"}}">
|
||||
<div class="boxed-section-body {{if @deployment.allocations.length "is-full-bleed"}}">
|
||||
{{#if @deployment.allocations.length}}
|
||||
<ListTable @source={{@deployment.allocations}} @class="allocations" as |t|>
|
||||
<t.head>
|
||||
|
||||
Reference in New Issue
Block a user