Skip to content

Commit

Permalink
fix(ui): use current workflow data for run summary with 'me' permissi…
Browse files Browse the repository at this point in the history
…on (#3756)
  • Loading branch information
richardlt authored and yesnault committed Dec 20, 2018
1 parent f2d1c14 commit 8ce1e8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ui/src/app/views/workflow/run/workflow.run.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export class WorkflowRunComponent implements OnInit {
@ViewChild('workflowRunParam')
runWithParamComponent: WorkflowNodeRunParamComponent;

workflow: Workflow;
subWorkflow: Subscription;

project: Project;
workflowRun: WorkflowRun;
subRun: Subscription;
Expand Down Expand Up @@ -71,7 +74,9 @@ export class WorkflowRunComponent implements OnInit {
this.parentParamsSubs = this._activatedRoute.parent.params.subscribe(params => {
this.workflowName = params['workflowName'];
});

this.subWorkflow = this._workflowStore.getWorkflows(this.project.key, this.workflowName).subscribe(ws => {
this.workflow = ws.get(this.project.key + '-' + this.workflowName);
});

// Get workflow run
this.subRun = this._workflowEventStore.selectedRun().subscribe(wr => {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/views/workflow/run/workflow.run.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<app-workflow-run-summary
[(direction)]="direction"
[project]="project"
[workflow]="workflowRun.workflow"
[workflow]="workflow"
[workflowName]="workflowName"
(relaunch)="relaunch()">
</app-workflow-run-summary>
Expand Down

0 comments on commit 8ce1e8b

Please sign in to comment.