[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:
Phil Renaud 2022-06-24 15:03:08 -04:00 committed by GitHub
parent b7a8318eac
commit 2e6e95e78c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 5 deletions

3
.changelog/13473.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
ui: Fixed a bug where dispatched children of parameterized jobs wouldn't display metadata or payloads
``

View File

@ -3,7 +3,7 @@ import { alias } from '@ember/object/computed';
import Component from '@glimmer/component'; import Component from '@glimmer/component';
export default class ParameterizedChild extends Component { export default class ParameterizedChild extends Component {
@alias('job.decodedPayload') payload; @alias('args.job.decodedPayload') payload;
@computed('payload') @computed('payload')
get payloadJSON() { get payloadJSON() {

View File

@ -24,12 +24,12 @@
<jobPage.ui.TaskGroups @sortProperty={{@sortProperty}} @sortDescending={{@sortDescending}} /> <jobPage.ui.TaskGroups @sortProperty={{@sortProperty}} @sortDescending={{@sortDescending}} />
<jobPage.ui.RecentAllocations /> <jobPage.ui.RecentAllocations />
<div class="boxed-section"> <div class="boxed-section">
<div class="boxed-section-head"> {{#if @job.meta}}
Meta
</div>
{{#if @job.definition.Meta}}
<jobPage.ui.Meta /> <jobPage.ui.Meta />
{{else}} {{else}}
<div class="boxed-section-head">
Meta
</div>
<div class="boxed-section-body"> <div class="boxed-section-body">
<div data-test-empty-meta-message class="empty-message"> <div data-test-empty-meta-message class="empty-message">
<h3 class="empty-message-headline"> <h3 class="empty-message-headline">