projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up DirectoryInputComponent's setDirectory params
[arvados-workbench2.git]
/
src
/
views
/
process-panel
/
process-panel-root.tsx
diff --git
a/src/views/process-panel/process-panel-root.tsx
b/src/views/process-panel/process-panel-root.tsx
index f76efe0d993dd2b83cbdc5b87a952405b73b8c54..52c0f4515145120caf1d6f95038323d4f5fdb307 100644
(file)
--- a/
src/views/process-panel/process-panel-root.tsx
+++ b/
src/views/process-panel/process-panel-root.tsx
@@
-20,19
+20,21
@@
export interface ProcessPanelRootDataProps {
}
export interface ProcessPanelRootActionProps {
}
export interface ProcessPanelRootActionProps {
- onContextMenu: (event: React.MouseEvent<HTMLElement>) => void;
+ onContextMenu: (event: React.MouseEvent<HTMLElement>
, process: Process
) => void;
onToggle: (status: string) => void;
onToggle: (status: string) => void;
+ openProcessInputDialog: (uuid: string) => void;
}
export type ProcessPanelRootProps = ProcessPanelRootDataProps & ProcessPanelRootActionProps;
}
export type ProcessPanelRootProps = ProcessPanelRootDataProps & ProcessPanelRootActionProps;
-export const ProcessPanelRoot = (
props
: ProcessPanelRootProps) =>
- pro
ps.pro
cess
+export const ProcessPanelRoot = (
{ process, ...props }
: ProcessPanelRootProps) =>
+ process
? <Grid container spacing={16} alignItems="stretch">
? <Grid container spacing={16} alignItems="stretch">
- <Grid item sm={12} md={7}
alignItems="stretch"
>
+ <Grid item sm={12} md={7}>
<ProcessInformationCard
<ProcessInformationCard
- process={props.process}
- onContextMenu={props.onContextMenu} />
+ process={process}
+ onContextMenu={event => props.onContextMenu(event, process)}
+ openProcessInputDialog={props.openProcessInputDialog} />
</Grid>
<Grid item sm={12} md={5}>
<SubprocessesCard
</Grid>
<Grid item sm={12} md={5}>
<SubprocessesCard