Create basic cumulative projects picker
[arvados-workbench2.git] / src / views-components / dialog-forms / update-process-dialog.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { compose } from "redux";
6 import { reduxForm } from 'redux-form';
7 import { withDialog } from "~/store/dialog/with-dialog";
8 import { DialogProcessUpdate } from '~/views-components/dialog-update/dialog-process-update';
9 import { PROCESS_UPDATE_FORM_NAME, ProcessUpdateFormDialogData } from '~/store/processes/process-update-actions';
10 import { updateProcess } from "~/store/workbench/workbench-actions";
11
12 export const UpdateProcessDialog = compose(
13     withDialog(PROCESS_UPDATE_FORM_NAME),
14     reduxForm<ProcessUpdateFormDialogData>({
15         form: PROCESS_UPDATE_FORM_NAME,
16         onSubmit: (data, dispatch) => {
17             dispatch(updateProcess(data));
18         }
19     })
20 )(DialogProcessUpdate);