Merge branch '17018-readonly-file-actions-fix'
[arvados-workbench2.git] / src / views / run-process-panel / run-process-basic-form.tsx
index ef4a9cc7fd2dd0f10382b193eb09e21e567c3b62..2739824edc0c4faeba387d25e282ba5687822b5f 100644 (file)
@@ -6,6 +6,7 @@ import * as React from 'react';
 import { reduxForm, Field } from 'redux-form';
 import { Grid } from '@material-ui/core';
 import { TextField } from '~/components/text-field/text-field';
+import { PROCESS_NAME_VALIDATION } from '~/validators/validators';
 
 export const RUN_PROCESS_BASIC_FORM = 'runProcessBasicForm';
 
@@ -18,12 +19,14 @@ export const RunProcessBasicForm =
         form: RUN_PROCESS_BASIC_FORM
     })(() =>
         <form>
-            <Grid container spacing={16}>
+            <Grid container spacing={32}>
                 <Grid item xs={12} md={6}>
                     <Field
                         name='name'
                         component={TextField}
-                        label="Enter a new name for run process" />
+                        label="Enter a new name for run process"
+                        required
+                        validate={PROCESS_NAME_VALIDATION} />
                 </Grid>
                 <Grid item xs={12} md={6}>
                     <Field