18123: Add isActive checkbox to group member list for user members
[arvados.git] / src / views-components / dialog-update / dialog-process-update.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import React from 'react';
6 import { InjectedFormProps } from 'redux-form';
7 import { WithDialogProps } from 'store/dialog/with-dialog';
8 import { ProcessUpdateFormDialogData } from 'store/processes/process-update-actions';
9 import { FormDialog } from 'components/form-dialog/form-dialog';
10 import { ProcessNameField, ProcessDescriptionField } from 'views-components/form-fields/process-form-fields';
11
12 type DialogProcessProps = WithDialogProps<{}> & InjectedFormProps<ProcessUpdateFormDialogData>;
13
14 export const DialogProcessUpdate = (props: DialogProcessProps) =>
15     <FormDialog
16         dialogTitle='Edit Process'
17         formFields={ProcessEditFields}
18         submitLabel='Save'
19         {...props}
20     />;
21
22 const ProcessEditFields = () => <span>
23     <ProcessNameField />
24     <ProcessDescriptionField />
25 </span>;