From 2133418485143ad4ace37713f14fb64ed8150f89 Mon Sep 17 00:00:00 2001 From: NetPenguins Date: Mon, 7 Sep 2020 10:56:11 -0400 Subject: [PATCH] Entity needed to be passed to logs component. --- .../components/WorkflowRunDetails/WorkflowRunDetails.tsx | 9 ++++++--- .../src/components/WorkflowRunLogs/WorkflowRunLogs.tsx | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/plugins/github-actions/src/components/WorkflowRunDetails/WorkflowRunDetails.tsx b/plugins/github-actions/src/components/WorkflowRunDetails/WorkflowRunDetails.tsx index 951a89dc71..21b47861d7 100644 --- a/plugins/github-actions/src/components/WorkflowRunDetails/WorkflowRunDetails.tsx +++ b/plugins/github-actions/src/components/WorkflowRunDetails/WorkflowRunDetails.tsx @@ -72,7 +72,7 @@ const useStyles = makeStyles(theme => ({ }, })); -const JobsList = ({ jobs }: { jobs?: Jobs }) => { +const JobsList = ({ jobs, entity }: { jobs?: Jobs; entity: Entity }) => { const classes = useStyles(); return ( @@ -84,6 +84,7 @@ const JobsList = ({ jobs }: { jobs?: Jobs }) => { className={ job.status !== 'success' ? classes.failed : classes.success } + entity={entity} /> ))} @@ -112,7 +113,7 @@ const StepView = ({ step }: { step: Step }) => { ); }; -const JobListItem = ({ job, className }: { job: Job; className: string }) => { +const JobListItem = ({ job, className, entity }: { job: Job; className: string; entity: Entity }) => { const classes = useStyles(); return ( { : } @@ -234,7 +237,7 @@ export const WorkflowRunDetails = ({ entity }: { entity: Entity }) => { {jobs.loading ? ( ) : ( - + )} diff --git a/plugins/github-actions/src/components/WorkflowRunLogs/WorkflowRunLogs.tsx b/plugins/github-actions/src/components/WorkflowRunLogs/WorkflowRunLogs.tsx index 7d83647456..804914fd3b 100644 --- a/plugins/github-actions/src/components/WorkflowRunLogs/WorkflowRunLogs.tsx +++ b/plugins/github-actions/src/components/WorkflowRunLogs/WorkflowRunLogs.tsx @@ -89,7 +89,7 @@ const DisplayLog = ({ jobLogs, className }: { jobLogs: any; className: string }) /** * A component for Run Logs visualization. */ -export const WorkflowRunLogs = ({ runId, inProgress, entity }:{ runId: string, inProgress: boolean, entity: Entity }) => { +export const WorkflowRunLogs = ({ entity, runId, inProgress }:{ entity: Entity, runId: string, inProgress: boolean }) => { const classes = useStyles(); const projectName = useProjectName(entity);