18559: Add adminOnly context menu item flag
[arvados-workbench2.git] / src / views-components / form-fields / process-form-fields.tsx
index cf471b67d1f16323abd551f69342782c11e068f0..60a51b1a2d47d2fecc048f87a9c39e9cc587b030 100644 (file)
@@ -2,14 +2,21 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import * as React from "react";
-import { Field, WrappedFieldProps } from "redux-form";
-import { TextField } from "~/components/text-field/text-field";
-import { PROCESS_NAME_VALIDATION } from "~/validators/validators";
+import React from "react";
+import { Field } from "redux-form";
+import { TextField } from "components/text-field/text-field";
+import { PROCESS_NAME_VALIDATION, PROCESS_DESCRIPTION_VALIDATION } from "validators/validators";
 
 export const ProcessNameField = () =>
     <Field
         name='name'
-        component={TextField}
+        component={TextField as any}
         validate={PROCESS_NAME_VALIDATION}
         label="Process Name" />;
+
+export const ProcessDescriptionField = () =>
+    <Field
+        name='description'
+        component={TextField as any}
+        validate={PROCESS_DESCRIPTION_VALIDATION}
+        label="Process Description" />;