mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 10:57:36 -02:30
Link users to workflow approval details from workflow node
This commit is contained in:
committed by
Shane McDonald
parent
9316ace3f6
commit
88d492371b
@@ -11,10 +11,7 @@ import { secondsToHHMMSS } from '../../../util/dates';
|
|||||||
import { constants as wfConstants } from '../../../components/Workflow/WorkflowUtils';
|
import { constants as wfConstants } from '../../../components/Workflow/WorkflowUtils';
|
||||||
|
|
||||||
const NodeG = styled.g`
|
const NodeG = styled.g`
|
||||||
cursor: ${props =>
|
cursor: ${props => (props.job ? 'pointer' : 'default')};
|
||||||
props.job && props.job.type !== 'workflow_approval'
|
|
||||||
? 'pointer'
|
|
||||||
: 'default'};
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const JobTopLine = styled.div`
|
const JobTopLine = styled.div`
|
||||||
@@ -90,8 +87,10 @@ function WorkflowOutputNode({ mouseEnter, mouseLeave, node }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleNodeClick = () => {
|
const handleNodeClick = () => {
|
||||||
if (job && job.type !== 'workflow_aproval') {
|
if (job) {
|
||||||
history.push(`/jobs/${job.id}/details`);
|
const basePath =
|
||||||
|
job.type !== 'workflow_approval' ? 'jobs' : 'workflow_approvals';
|
||||||
|
history.push(`/${basePath}/${job.id}/details`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user