Skip to content

Commit

Permalink
fix(core): Fix configure pipeline links when details is open (#4276)
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Reynolds authored and anotherchrisberry committed Oct 17, 2017
1 parent dabbafb commit 375cf3e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ export class CreatePipeline extends React.Component<ICreatePipelineProps> {
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 (
<li>
Expand Down

0 comments on commit 375cf3e

Please sign in to comment.