1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import * as React from "react";
6 import { Dialog, DialogActions, Button, CardHeader, DialogContent } from '@material-ui/core';
7 import { WithDialogProps } from '~/store/dialog/with-dialog';
8 import { withDialog } from "~/store/dialog/with-dialog";
9 import { PROCESS_INPUT_DIALOG_NAME } from '~/store/processes/process-input-actions';
10 import { RunProcessInputsForm } from "~/views/run-process-panel/run-process-inputs-form";
12 export const ProcessInputDialog = withDialog(PROCESS_INPUT_DIALOG_NAME)(
13 (props: WithDialogProps<any>) =>
17 onClose={props.closeDialog}>
19 title="Inputs - Pipeline template that generates a config file from a template" />
21 <RunProcessInputsForm inputs={getInputs(props.data.containerRequest)} />
27 onClick={props.closeDialog}>
34 const getInputs = (data: any) =>
35 data && data.mounts["/var/lib/cwl/workflow.json"] ? data.mounts["/var/lib/cwl/workflow.json"].content.$graph.find(
36 (a: any) => a.id === '#main').inputs.map(
42 value: data.mounts["/var/lib/cwl/cwl.input.json"].content[it.id],