X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2093197a0f8145a983c99453f22607dff5a13364..32e3370febf2e29c45e27065cdc14a883775f261:/src/views/run-process-panel/inputs/directory-array-input.tsx diff --git a/src/views/run-process-panel/inputs/directory-array-input.tsx b/src/views/run-process-panel/inputs/directory-array-input.tsx index d4f4cb6d37..a7d83daef5 100644 --- a/src/views/run-process-panel/inputs/directory-array-input.tsx +++ b/src/views/run-process-panel/inputs/directory-array-input.tsx @@ -119,7 +119,6 @@ const DirectoryArrayInputComponent = connect(mapStateToProps)( this.setState({ open: true }); } - closeDialog = () => { this.setState({ open: false }); } @@ -214,6 +213,7 @@ const DirectoryArrayInputComponent = connect(mapStateToProps)( data.name} inputComponent={this.textInput} /> @@ -223,9 +223,10 @@ const DirectoryArrayInputComponent = connect(mapStateToProps)( {...props} error={this.props.meta.touched && !!this.props.meta.error} readOnly - onClick={this.openDialog} - onKeyPress={this.openDialog} - onBlur={this.props.input.onBlur} /> + onClick={!this.props.commandInput.disabled ? this.openDialog : undefined} + onKeyPress={!this.props.commandInput.disabled ? this.openDialog : undefined} + onBlur={this.props.input.onBlur} + disabled={this.props.commandInput.disabled} /> dialog = () =>
- Selected collections ({this.state.directories.length}): + Selected collections ({this.state.directories.length}):