refact: job-page/service template to use contextual components

This commit is contained in:
Jai Bhagat
2022-01-03 09:53:20 -05:00
parent a8888cd330
commit 646509037e

View File

@@ -1,29 +1,18 @@
<JobPage::Parts::Body @job={{this.job}}>
<JobPage::Parts::Error @errorMessage={{this.errorMessage}} @onDismiss={{action "clearErrorMessage"}} />
<JobPage::Parts::Title @job={{this.job}} @handleError={{action "handleError"}} />
<JobPage::Parts::StatsBox @job={{this.job}} />
{{#if (can "accept recommendations")}}
{{#each this.job.recommendationSummaries as |summary|}}
<Das::RecommendationAccordion @summary={{summary}} />
{{/each}}
{{/if}}
<JobPage::Parts::Summary @job={{this.job}} />
<JobPage::Parts::PlacementFailures @job={{this.job}} />
<JobPage::Parts::LatestDeployment @job={{this.job}} @handleError={{action "handleError"}} />
<JobPage::Parts::TaskGroups
@job={{this.job}}
@sortProperty={{this.sortProperty}}
@sortDescending={{this.sortDescending}}
@gotoTaskGroup={{this.gotoTaskGroup}} />
<JobPage::Parts::RecentAllocations @job={{this.job}} />
<JobPage::Parts::Meta @job={{this.job}} />
</JobPage::Parts::Body>
<JobPage @job={{@job}} as |jobPage|>
<jobPage.ui.Body>
<jobPage.ui.Error />
<jobPage.ui.Title />
<jobPage.ui.StatsBox />
<jobPage.ui.DasRecommendations />
<jobPage.ui.Summary />
<jobPage.ui.PlacementFailures />
<jobPage.ui.LatestDeployment />
<jobPage.ui.TaskGroups
@sortProperty={{@sortProperty}}
@sortDescending={{@sortDescending}}
@gotoTaskGroup={{@gotoTaskGroup}}
/>
<jobPage.ui.RecentAllocations />
<jobPage.ui.Meta />
</jobPage.ui.Body>
</JobPage>