mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
[ui] Reinstate Meta and Payload sections to Parameterized Child Jobs (#13473)
* Shift meta off job.definition and decodedPayload alias to passed arg * Changelog
This commit is contained in:
3
.changelog/13473.txt
Normal file
3
.changelog/13473.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
ui: Fixed a bug where dispatched children of parameterized jobs wouldn't display metadata or payloads
|
||||
``
|
||||
@@ -3,7 +3,7 @@ import { alias } from '@ember/object/computed';
|
||||
import Component from '@glimmer/component';
|
||||
|
||||
export default class ParameterizedChild extends Component {
|
||||
@alias('job.decodedPayload') payload;
|
||||
@alias('args.job.decodedPayload') payload;
|
||||
|
||||
@computed('payload')
|
||||
get payloadJSON() {
|
||||
|
||||
@@ -24,12 +24,12 @@
|
||||
<jobPage.ui.TaskGroups @sortProperty={{@sortProperty}} @sortDescending={{@sortDescending}} />
|
||||
<jobPage.ui.RecentAllocations />
|
||||
<div class="boxed-section">
|
||||
<div class="boxed-section-head">
|
||||
Meta
|
||||
</div>
|
||||
{{#if @job.definition.Meta}}
|
||||
{{#if @job.meta}}
|
||||
<jobPage.ui.Meta />
|
||||
{{else}}
|
||||
<div class="boxed-section-head">
|
||||
Meta
|
||||
</div>
|
||||
<div class="boxed-section-body">
|
||||
<div data-test-empty-meta-message class="empty-message">
|
||||
<h3 class="empty-message-headline">
|
||||
|
||||
Reference in New Issue
Block a user