From cd2600f0b4befc8996b05708653732f95869b4ec Mon Sep 17 00:00:00 2001 From: Steven Guiheux Date: Thu, 25 Jun 2020 14:38:33 +0200 Subject: [PATCH] fix(ui): display workflow run --- ui/src/app/views/workflow/run/workflow.run.component.ts | 7 ++++++- ui/src/app/views/workflow/run/workflow.run.html | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ui/src/app/views/workflow/run/workflow.run.component.ts b/ui/src/app/views/workflow/run/workflow.run.component.ts index fa29acda74..d74239cab0 100644 --- a/ui/src/app/views/workflow/run/workflow.run.component.ts +++ b/ui/src/app/views/workflow/run/workflow.run.component.ts @@ -101,6 +101,12 @@ export class WorkflowRunComponent implements OnInit { this.workflowName = this._store.selectSnapshot(WorkflowState.workflowSnapshot).name; } + if (this.workflowRunData['status'] && this.workflowRunData['status'] === 'Pending' + && this.workflowRunData['status'] !== wr.status) { + this.workflowRunData['workflow'] = wr.workflow; + this.workflowName = this._store.selectSnapshot(WorkflowState.workflowSnapshot).name; + } + if (wr && this.workflowRunData['id'] && this.workflowRunData['id'] === wr.id && this.workflowRunData['status'] !== wr.status && PipelineStatus.isDone(wr.status)) { this.handleNotification(wr); @@ -118,7 +124,6 @@ export class WorkflowRunComponent implements OnInit { this.workflowRunData['infos'] = wr.infos; this.workflowRunData['num'] = wr.num; this.workflowRunData['status'] = wr.status; - this.updateTitle(wr); this._cd.markForCheck(); }); diff --git a/ui/src/app/views/workflow/run/workflow.run.html b/ui/src/app/views/workflow/run/workflow.run.html index 86399a1e73..4b5602798d 100644 --- a/ui/src/app/views/workflow/run/workflow.run.html +++ b/ui/src/app/views/workflow/run/workflow.run.html @@ -1,5 +1,5 @@
-