diff --git a/ui/app/components/job-page/parts/running-deployment.js b/ui/app/components/job-page/parts/running-deployment.js index 7df4236d8..72ea12f8e 100644 --- a/ui/app/components/job-page/parts/running-deployment.js +++ b/ui/app/components/job-page/parts/running-deployment.js @@ -3,4 +3,6 @@ import Component from '@ember/component'; export default Component.extend({ job: null, tagName: '', + + isShowingDeploymentDetails: false, }); diff --git a/ui/app/templates/components/job-page/parts/running-deployment.hbs b/ui/app/templates/components/job-page/parts/running-deployment.hbs index c42bb866d..b67f0bd0b 100644 --- a/ui/app/templates/components/job-page/parts/running-deployment.hbs +++ b/ui/app/templates/components/job-page/parts/running-deployment.hbs @@ -1,22 +1,24 @@ -{{#if job.runningDeployment}} -
+{{#if job.latestDeployment}} +
- Active Deployment - {{job.runningDeployment.shortId}} - {{#if job.runningDeployment.version.submitTime}} - {{moment-from-now job.runningDeployment.version.submitTime}} + {{if job.latestDeployment.isRunning "Active" "Latest"}} Deployment + {{job.latestDeployment.shortId}} + {{#if job.latestDeployment.version.submitTime}} + {{moment-from-now job.latestDeployment.version.submitTime}} {{/if}}
- Running - {{#if job.runningDeployment.requiresPromotion}} + + {{job.latestDeployment.status}} + + {{#if job.latestDeployment.requiresPromotion}} Deployment is running but requires promotion {{/if}}
- {{#job-deployment-details deployment=job.runningDeployment as |d|}} + {{#job-deployment-details deployment=job.latestDeployment as |d|}} {{d.metrics}} {{#if isShowingDeploymentDetails}} {{d.taskGroups}}