disabled-inputs-modal-and-filled-with-proper-values
[arvados-workbench2.git] / src / views / run-process-panel / inputs / string-array-input.tsx
index da03f2966149ebe4abd7be9d85588e71b62f8ab5..e560b33778fc7cf0f99a76e0461bf8858192e26a 100644 (file)
@@ -42,15 +42,17 @@ const StringArrayInputComponent = (props: GenericInputProps) =>
 
 class InputComponent extends React.PureComponent<GenericInputProps>{
     render() {
+        const { commandInput, input, meta } = this.props;
         return <ChipsInput
-            deletable
-            orderable
-            value={this.props.input.value}
+            deletable={!commandInput.disabled}
+            orderable={!commandInput.disabled}
+            disabled={commandInput.disabled}
+            value={input.value}
             onChange={this.handleChange}
             createNewValue={identity}
             inputComponent={Input}
             inputProps={{
-                error: this.props.meta.error,
+                error: meta.error
             }} />;
     }