From de586b6ee124327d6fd3ba9b381c7477c03e69e3 Mon Sep 17 00:00:00 2001 From: Justin Reynolds Date: Mon, 16 Oct 2017 19:18:21 -0700 Subject: [PATCH] fix(core): Fix configure pipeline links when details is open --- .../modules/core/src/pipeline/config/CreatePipeline.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/scripts/modules/core/src/pipeline/config/CreatePipeline.tsx b/app/scripts/modules/core/src/pipeline/config/CreatePipeline.tsx index c4eb9e68038..cf26f4ef261 100644 --- a/app/scripts/modules/core/src/pipeline/config/CreatePipeline.tsx +++ b/app/scripts/modules/core/src/pipeline/config/CreatePipeline.tsx @@ -55,7 +55,12 @@ export class CreatePipeline extends React.Component { const Pipeline = (props: { pipeline: any, type: 'pipeline' | 'strategy' }): JSX.Element => { const clicked = () => { ReactGA.event({category: 'Pipelines', action: `Configure ${props.type} (via top level)`}); - ReactInjector.$state.go('^.pipelineConfig', {pipelineId: props.pipeline.id}); + const { $state } = ReactInjector; + if (!$state.current.name.includes('.executions.execution')) { + $state.go('^.pipelineConfig', { pipelineId: props.pipeline.id }); + } else { + $state.go('^.^.pipelineConfig', { pipelineId: props.pipeline.id }); + } } return (