Merge branch 'master' into 14421-last-modified-filtering
[arvados-workbench2.git] / src / views / run-process-panel / inputs / directory-input.tsx
index b85c24f35bdf45858f9ef6fc571eb11237201930..aa25fefc0bfbe9b45213ce220e8a855c8f22b68f 100644 (file)
@@ -94,8 +94,9 @@ const DirectoryInputComponent = connect()(
                         fullWidth
                         value={props.input.value}
                         error={props.meta.touched && !!props.meta.error}
-                        onClick={this.openDialog}
-                        onKeyPress={this.openDialog} />}
+                        disabled={props.commandInput.disabled}
+                        onClick={!this.props.commandInput.disabled ? this.openDialog : undefined}
+                        onKeyPress={!this.props.commandInput.disabled ? this.openDialog : undefined} />}
                 {...this.props} />;
         }