Skip to content

Commit

Permalink
fix(ui): containerset archive log query params. Fixes #9669 (#9833)
Browse files Browse the repository at this point in the history
Signed-off-by: Tianchu Zhao <evantczhao@gmail.com>
  • Loading branch information
tczhao committed Oct 18, 2022
1 parent a752a58 commit 9237a72
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -191,7 +191,16 @@ const WorkflowNodeSummary = (props: Props) => {
</Button>
)}{' '}
{props.node.type === 'Container' && props.onShowContainerLogs && (
<Button icon='bars' onClick={() => props.onShowContainerLogs(props.node.name.replace(/.[^.]*$/, ''), props.node.name.replace(/.*\./, ''))}>
<Button
icon='bars'
onClick={() =>
props.onShowContainerLogs(
// find parent node id using node name,
// in container set, the parent of the selected node id contains log output
Object.keys(props.workflow.status.nodes).find(key => props.workflow.status.nodes[key].name === props.node.name.replace(/.[^.]*$/, '')),
props.node.name.replace(/.*\./, '')
)
}>
logs
</Button>
)}{' '}
Expand Down

0 comments on commit 9237a72

Please sign in to comment.