Cmd click for workflows and workflow runs (#646)

This commit is contained in:
Kerem Yilmaz
2024-07-25 07:14:11 -07:00
committed by GitHub
parent e72dd59c19
commit 7d2dd26931

View File

@@ -98,7 +98,16 @@ function Workflows() {
return (
<TableRow
key={workflow.workflow_permanent_id}
onClick={() => {
onClick={(event) => {
if (event.ctrlKey || event.metaKey) {
window.open(
window.location.origin +
`/workflows/${workflow.workflow_permanent_id}`,
"_blank",
"noopener,noreferrer",
);
return;
}
navigate(`${workflow.workflow_permanent_id}`);
}}
className="cursor-pointer"
@@ -174,7 +183,16 @@ function Workflows() {
return (
<TableRow
key={workflowRun.workflow_run_id}
onClick={() => {
onClick={(event) => {
if (event.ctrlKey || event.metaKey) {
window.open(
window.location.origin +
`/workflows/${workflowRun.workflow_permanent_id}/${workflowRun.workflow_run_id}`,
"_blank",
"noopener,noreferrer",
);
return;
}
navigate(
`/workflows/${workflowRun.workflow_permanent_id}/${workflowRun.workflow_run_id}`,
);